Skip to content
Snippets Groups Projects
Commit aa788dfa authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Re-add missing rule

parent ba1feeda
Branches 616-docs-document-dashboard-and-dashboard-widgets
No related tags found
1 merge request!923Resolve "Missing permission for user invitations"
Pipeline #50948 canceled
......@@ -24,6 +24,7 @@ Fixed
* Some preferences were required when they shouldn't, and vice versa.
* IO errors on accessing backup directory in health check are now properly reported
* Date picker was not properly initialized if field was already filled.
* Rule for user invitations was missing
`2.6`_ - 2022-01-10
-------------------
......
......@@ -325,6 +325,10 @@ rules.add_perm("core.can_register", can_register_predicate)
can_change_password_predicate = is_site_preference_set(section="auth", pref="allow_password_change")
rules.add_perm("core.can_change_password", can_change_password_predicate)
# django-invitations
invite_enabled_predicate = is_site_preference_set(section="auth", pref="invite_enabled")
rules.add_perm("core.invite_enabled", invite_enabled_predicate)
# OAuth2 permissions
create_oauthapplication_predicate = has_person & has_global_perm("core.add_oauthapplication")
rules.add_perm("core.create_oauthapplication_rule", create_oauthapplication_predicate)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment