mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Bypass permission check for command line
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user