UserCapabilitiesExtension extension

Provides helper methods for List<UserCapability>.

on

Properties

hasSlotMaster bool

Available on Iterable<UserCapability>, provided by the UserCapabilitiesExtension extension

Returns true if the list contains UserCapability.slotMaster. Otherwise false.
no setter
hasStudent bool

Available on Iterable<UserCapability>, provided by the UserCapabilitiesExtension extension

Returns true if the list contains UserCapability.student. Otherwise false.
no setter
hasTeacher bool

Available on Iterable<UserCapability>, provided by the UserCapabilitiesExtension extension

Returns true if the list contains UserCapability.teacher. Otherwise false.
no setter
highest UserCapability

Available on Iterable<UserCapability>, provided by the UserCapabilitiesExtension extension

Returns the highest UserCapability in the list.
no setter

Methods

has(List<UserCapability> capabilities) bool

Available on Iterable<UserCapability>, provided by the UserCapabilitiesExtension extension

Returns true if the list contains all of the given capabilities. Otherwise false.