Bypass permission check for command line

This commit is contained in:
FusionPBX
2023-09-14 15:42:56 -06:00
committed by GitHub
parent e5f6c3067a
commit f6b92fc565

View File

@@ -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;