MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / get_organisation_role

Method get_organisation_role

api/users/models.py:280–283  ·  view source on GitHub ↗
(self, organisation)

Source from the content-addressed store, hash-verified

278 self.permission_groups.remove(*organisation.permission_groups.all())
279
280 def get_organisation_role(self, organisation): # type: ignore[no-untyped-def]
281 user_organisation = self.get_user_organisation(organisation)
282 if user_organisation:
283 return user_organisation.role
284
285 def get_organisation_join_date(self, organisation): # type: ignore[no-untyped-def]
286 user_organisation = self.get_user_organisation(organisation)

Callers 3

get_roleMethod · 0.45
get_roleMethod · 0.45

Calls 1

get_user_organisationMethod · 0.95