OtherSuperUserRole.php
35 if (($oidObj = ObjectId::parse($resource)) !== null || ($oidObj = ObjectId::parse($extensionRemoved)) !== null) {
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:28
match(User $user, $resource)
Definition: OtherSuperUserRole.php:32
static parse($oid)
Parse a serialized object id string into an ObjectId instance.
Definition: ObjectId.php:135
DynamicRole is the interface for user roles based on attributes.
Definition: DynamicRole.php:20
isSuperUser()
Check if the user is super user (can't be inactive).
static getInstance($name, $dynamicConfiguration=[])
Definition: ObjectFactory.php:47
OtherSuperUserRole matches if the user has the super user attribute and the resource is a user instan...
Definition: OtherSuperUserRole.php:24
ObjectFactory implements the service locator pattern by wrapping a Factory instance and providing sta...
Definition: ObjectFactory.php:24