allow is_system_auditor with AUTH_LDAP_USER_FLAGS_BY_GROUP

see: #4959
This commit is contained in:
Ryan Petrello 2017-03-06 14:21:55 -05:00 committed by Matthew Jones
parent d506cbf249
commit ec52e18be8
2 changed files with 4 additions and 4 deletions

View File

@ -377,9 +377,9 @@ register(
help_text=_('User profile flags updated from group membership (key is user '
'attribute name, value is group DN). These are boolean fields '
'that are matched based on whether the user is a member of the '
'given group. So far only is_superuser is settable via this '
'method. This flag is set both true and false at login time '
'based on current LDAP settings.'),
'given group. So far only is_superuser and is_system_auditor '
'are settable via this method. This flag is set both true and '
'false at login time based on current LDAP settings.'),
category=_('LDAP'),
category_slug='ldap',
placeholder=collections.OrderedDict([

View File

@ -322,7 +322,7 @@ class LDAPUserFlagsField(fields.DictField):
default_error_messages = {
'invalid_flag': _('Invalid user flag: "{invalid_flag}".'),
}
valid_user_flags = {'is_superuser'}
valid_user_flags = {'is_superuser', 'is_system_auditor'}
child = LDAPDNField()
def to_internal_value(self, data):