asobi_group_roles (asobi v0.35.4)

View Source

Summary

Functions

can_kick(ActorRole, TargetRole)

-spec can_kick(binary(), binary()) -> boolean().

can_manage(ActorRole, TargetRole)

-spec can_manage(binary(), binary()) -> boolean().

can_promote(ActorRole, TargetCurrentRole, NewRole)

-spec can_promote(binary(), binary(), binary()) -> boolean().

can_update_group(Role)

-spec can_update_group(binary()) -> boolean().

rank(_)

-spec rank(binary()) -> non_neg_integer().

valid_role(_)

-spec valid_role(binary()) -> boolean().