Bypass permission check for command line
This commit is contained in:
parent
e5f6c3067a
commit
f6b92fc565
|
|
@ -66,6 +66,11 @@ if (!class_exists('permissions')) {
|
|||
*/
|
||||
public function exists($permission_name) {
|
||||
|
||||
//if run from command line then return true
|
||||
if (defined('STDIN') && empty($_SESSION["permissions"])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
//define permissions global variable
|
||||
global $permissions;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue