mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
Merge pull request #426 from ryanpetrello/fix-7655
don't append to the activity stream on LDAP group disassociate
This commit is contained in:
commit
f41c8cf4f2
@ -307,7 +307,7 @@ def _update_m2m_from_groups(user, ldap_user, rel, opts, remove=True):
|
||||
should_add = True
|
||||
if should_add:
|
||||
rel.add(user)
|
||||
elif remove:
|
||||
elif remove and user in rel.all():
|
||||
rel.remove(user)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user