bool checkLevel(
int
$level, int|array
$owner_user_id, int|array
$owner_group_id)
|
|
Checks if the current user has a certain right in a given area at the necessary level.
Level 1: requires that owner_user_id matches $this->perm_user_id Level 2: requires that the $owner_group_id matches the id one of the (sub)groups that $this->perm_user_id is a member of or requires that the $owner_user_id matches a perm_user_id of a member of one of $this->perm_user_id's (sub)groups Level 3: no requirements
Important note: Every ressource MAY be owned by a user and/or by a group. Therefore, $owner_user_id and/or $owner_group_id can either be an integer or null.
Parameters: