static public haveUserRight ( $user, $right, $valright, $entity ) : boolean | ||
$user | integer id of the user to check rights | |
$right | string right to check | |
$valright | integer/string/array value of the rights searched | |
$entity | integer id of the entity | |
return | boolean |