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

Method get_role

api/users/serializers.py:85–86  ·  view source on GitHub ↗
(self, instance)

Source from the content-addressed store, hash-verified

83 return fields
84
85 def get_role(self, instance): # type: ignore[no-untyped-def]
86 return instance.get_organisation_role(self.context.get("organisation"))
87
88 def get_join_date(self, instance): # type: ignore[no-untyped-def]
89 return instance.get_organisation_join_date(self.context.get("organisation"))

Callers

nothing calls this directly

Calls 2

get_organisation_roleMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected