fix(tugraz_authenticated): missmatch of role name

This commit is contained in:
Christoph Ladurner
2024-07-25 22:59:15 +02:00
parent c91d056a56
commit c934a4952b

View File

@@ -9,13 +9,13 @@
"""`RoleNeed`s for permission policies. """`RoleNeed`s for permission policies.
To use these roles, add them to the database via: 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: 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 from flask_principal import RoleNeed
# using `flask_principal.RoleNeed`` instead of `invenio_access.SystemRoleNeed`, # using `flask_principal.RoleNeed`` instead of `invenio_access.SystemRoleNeed`,
# because these roles are assigned by an admin rather than automatically by the system # 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")