MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / remove_as_group_admin

Method remove_as_group_admin

api/users/models.py:404–407  ·  view source on GitHub ↗
(self, group_id: int)

Source from the content-addressed store, hash-verified

402 ).update(group_admin=True)
403
404 def remove_as_group_admin(self, group_id: int): # type: ignore[no-untyped-def]
405 UserPermissionGroupMembership.objects.filter(
406 ffadminuser=self, userpermissiongroup__id=group_id
407 ).update(group_admin=False)
408
409
410# Since we can't enforce FFAdminUser to implement the UserABC interface using inheritance

Callers 1

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected