1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +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:
Ryan Petrello 2017-09-20 12:31:40 -04:00 committed by Matthew Jones
commit f41c8cf4f2

View File

@ -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)