mirror of
https://github.com/Cian-H/invenio-config-iform.git
synced 2025-12-22 21:11:57 +00:00
fix(tugraz_authenticated): missmatch of role name
This commit is contained in:
@@ -9,13 +9,13 @@
|
||||
"""`RoleNeed`s for permission policies.
|
||||
|
||||
To use these roles, add them to the database via:
|
||||
`$ invenio roles create tugraz_authenticated_user --description "..."`
|
||||
`$ invenio roles create tugraz_authenticated --description "..."`
|
||||
then add roles to users via:
|
||||
`$ invenio roles add user@email.com tugraz_authenticated_user`
|
||||
`$ invenio roles add user@email.com tugraz_authenticated`
|
||||
"""
|
||||
|
||||
from flask_principal import RoleNeed
|
||||
|
||||
# using `flask_principal.RoleNeed`` instead of `invenio_access.SystemRoleNeed`,
|
||||
# because these roles are assigned by an admin rather than automatically by the system
|
||||
tugraz_authenticated_user = RoleNeed("tugraz_authenticated_user")
|
||||
tugraz_authenticated_user = RoleNeed("tugraz_authenticated")
|
||||
|
||||
Reference in New Issue
Block a user