Ticket #1324: manager_cli.diff

File manager_cli.diff, 0.5 kB (added by openhaus, 7 years ago)

Patch

  • lib/SGL/Manager.php

    old new  
    265265    function _authorise($mgrPerm, $mgrName, $input) 
    266266    { 
    267267        // if user has no global manager perms check for each action 
    268         if (!SGL_Session::hasPerms($mgrPerm)) { 
     268        if (!SGL_Session::hasPerms($mgrPerm) && !SGL::runningFromCLI()) { 
    269269 
    270270            // and if chained methods to be called are allowed 
    271271            $ret = true;