User¶
CommunityUser¶
Extends
User.-
class
policyengine.models.CommunityUser(*args, **kwargs)¶ -
readable_name¶ The readable name of the user. May or may not exist.
-
community¶ The community which the user belongs to.
-
access_token¶ The access token which the user uses on login. May or may not exist.
-
is_community_admin¶ True if the user is an admin. Default is False.
-
avatar¶ The URL of the avatar image of the user. May or may not exist.
-
get_roles()¶ Returns a list of CommunityRoles containing all of the user’s roles.
-
has_role(name)¶ Returns True if the user has a role with the specified role_name.
- Parameters
name – The name of the role to check for.
-
property
constitution_community¶ The ConstitutionCommunity that this user belongs to.
-