UserCapabilityExtension extension
Provides helper methods for UserCapability.
Properties
- isDev → bool
-
Returns
true
if this capability is UserCapability.dev. Otherwisefalse
.read-only - isModerator → bool
-
Returns
true
if this capability is UserCapability.moderator. Otherwisefalse
.read-only - isStudent → bool
-
Returns
true
if this capability is UserCapability.student. Otherwisefalse
.read-only - isTeacher → bool
-
Returns
true
if this capability is UserCapability.teacher. Otherwisefalse
.read-only