Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tugraz_authenticated): missmatch of role name #124

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions invenio_config_tugraz/permissions/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] tugraz_authenticated_user`
`$ invenio roles add [email protected] 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")