Office staff can modify office staff
This commit is contained in:
parent
98f40eb82d
commit
21f12b917c
|
@ -23,11 +23,13 @@ def group_members(data):
|
|||
data, euid = data
|
||||
|
||||
# only syscom may modify non-club groups
|
||||
if data['group'] != 'office':
|
||||
user = pwd.getpwuid(euid).pw_name
|
||||
users = grp.getgrnam('syscom').gr_mem
|
||||
if user not in users:
|
||||
member = members.get(data['group'])
|
||||
if member is None or 'objectClass' not in member or 'club' not in member['objectClass']:
|
||||
if member is None or 'objectClass' not in member \
|
||||
or 'club' not in member['objectClass']:
|
||||
return
|
||||
|
||||
add_data = data.copy()
|
||||
|
|
Loading…
Reference in New Issue