mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Merge branch 'master' into ciauth
This commit is contained in:
@@ -112,11 +112,12 @@ class PermissionLib
|
||||
public function isEntitled($requiredPermissions, $calledMethod)
|
||||
{
|
||||
$checkPermissions = false;
|
||||
$requestMethod = $_SERVER['REQUEST_METHOD'];
|
||||
|
||||
// If it's called from command line than it's trusted
|
||||
if (is_cli()) return true;
|
||||
|
||||
$requestMethod = $_SERVER['REQUEST_METHOD'];
|
||||
|
||||
// Checks if the parameter $requiredPermissions is set, is an array and contains at least one element
|
||||
if (isset($requiredPermissions) && !isEmptyArray($requiredPermissions))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user