src/OwpBaseFramework.inc.php
private function checkActionPermissions($action)
    {
        $getActionData = $this->getActionData($action);

        if(!(int)$getActionData["permissions"]["isAdmin"] && !(int)$getActionData["permissions"]["isUser"]) {
            return true;
        }

        if((boolean)$this->userClass->isLoggedIn()) {
            if((boolean)$this->userClass->isAdmin() && (int)$getActionData["permissions"]["isAdmin"]) {
                return true;
            } else {
                return ((int)$getActionData["permissions"]["isUser"]?true:false);
            }
        } else {
            return false;
        }
    }
private function checkActionPermissions($action)
    {
        $getActionData = $this->getActionData($action);

        if(!(int)$getActionData["permissions"]["isAdmin"] && !(int)$getActionData["permissions"]["isUser"]) {
            return true;
        }

        if((boolean)$this->userClass->isLoggedIn()) {
            if((boolean)$this->userClass->isAdmin() && (int)$getActionData["permissions"]["isAdmin"]) {
                return true;
            } else {
                return ((int)$getActionData["permissions"]["isUser"]?true:false);
            }
        } else {
            return false;
        }
    }
checkActionPermissions()

@method checkActionPermissions() Returns action data
@param  $action
@return boolean

@author  Brian Tafoya <btafoya@briantafoya.com>
@version 1.0