Skip to content
Snippets Groups Projects

Resolve "Allow more than one person without e-mail address to be invited"

2 files
+ 7
7
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
5
@@ -329,11 +329,7 @@ rules.add_perm("core.can_change_password", can_change_password_predicate)
invite_enabled_predicate = is_site_preference_set(section="auth", pref="invite_enabled")
rules.add_perm("core.invite_enabled", invite_enabled_predicate)
can_invite_predicate = (
invite_enabled_predicate
& has_person
& has_global_perm("core.invite")
)
can_invite_predicate = invite_enabled_predicate & has_person & has_global_perm("core.invite")
rules.add_perm("core.can_invite", can_invite_predicate)
# OAuth2 permissions
Loading