-
- All Implemented Interfaces:
public final class PermissibleExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static BooleanhasPermission(Permissible $self, Permission permission)Gets the value of the specified permission, if set. final static BooleanisPermissionSet(Permissible $self, Permission permission)Checks if this object contains an override for the specified Permission. final static TriStatepermissionValue(Permissible $self, Permission permission)Checks if this object has a permission set and, if it is set, the value of the permission. -
-
Method Detail
-
hasPermission
final static Boolean hasPermission(Permissible $self, Permission permission)
Gets the value of the specified permission, if set.
If a permission override is not set on this object, the default value of the permission will be returned.
-
isPermissionSet
final static Boolean isPermissionSet(Permissible $self, Permission permission)
Checks if this object contains an override for the specified Permission.
-
permissionValue
final static TriState permissionValue(Permissible $self, Permission permission)
Checks if this object has a permission set and, if it is set, the value of the permission.
-
-
-
-