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