mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Add actions for LDAP group management.
This commit is contained in:
1 parent
2adf14b8b7
commit
197c95a7bf
5 files changed
+104
-21
No files matched your search
@@ -72,6 +72,14 @@ than 63 characters in length.'),
|
||||
messages.error(self.request,
|
||||
_('Creating LDAP user failed.'))
|
||||
|
||||
try:
|
||||
actions.superuser_run(
|
||||
'add-ldap-user-to-group',
|
||||
[user.get_username(), 'admin'])
|
||||
except ActionError:
|
||||
messages.error(self.request,
|
||||
_('Failed to add new user to admin group.'))
|
||||
|
||||
self.login_user()
|
||||
|
||||
return user
|
||||
|
||||
Reference in new issue
Block a user