Comments (6)
cc: @inveniosoftware/triagers
from invenio-access.
This is sort of feature, since it's documented:
https://pythonhosted.org/invenio-access/usage.html#action-needs
[...]
If no role or user is attached anybody can perform the action. You can verify this behavior using following commands.
[...]
Implying that consequently, if a user or role is attached then nobody but the user or role can perform the action.
However as @jacquerie notes, in the normal context of a webserver, and digital library, it's a standard to have an admin user, which should not imply that any other user is then forbidden to perform the given action.
That said: what about changing the default behavior for certain actions? (This was actually the case on Invenio1, where out-of-the-box we were shipping default sensible authorizations with either allow any
or deny all
modes). Alternatively what is the easy recipe to authorize by default all guests users to perform a certain action?
from invenio-access.
Hmm, maybe there should be a default 'public' action/role registered for some of the actions (like viewing a record).
from invenio-access.
You can allow certain action to all users (sadly not available via CLI yet).
from invenio-access.
FYI I am about to start working on improving the cli. Please see comments in #73.
from invenio-access.
Since #73 has been merged one can explicitly grant access for anybody:
$ flask access allow <ACTION> any
from invenio-access.
Related Issues (20)
- travis: fix failing build HOT 1
- travis: master build failure
- tests: fix import sorting (build failure) HOT 1
- permissions: remove DynamicPermission
- global: make new release v1.2.0
- add ``explicit_excludes`` to permissions
- IP based access control
- global: fix import error
- Breaking installation due to missing dependency HOT 1
- models: use "passive_deletes=True" for cascading deletes
- installation: pin Sphinx to fix build error
- release v1.4.1 HOT 2
- release v1.3.2 HOT 1
- global: migration to github-actions from travis
- test: sphinx.cmd.build failing
- Allow `AnonymousIdentity` for `get_identity()` utils functions
- UniqueConstrain isn't respected on ActionRoles
- Wrong version invenio-i18n>=1.3.2 HOT 1
- entry points loading is very slow with `poetry`
- roles: modify RoleNeed creation by role name to role id HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from invenio-access.