classes/BearCMS/CurrentUser.php
public function getPermissions(): array
    {
        $userID = $this->getID();
        if ($userID === null) {
            return [];
        }
        $data = Internal\Data::getValue('bearcms/users/user/' . md5($userID) . '.json');
        if ($data !== null) {
            $user = json_decode($data, true);
            return isset($user['permissions']) ? $user['permissions'] : [];
        }
        return [];
    }
public function getPermissions(): array
    {
        $userID = $this->getID();
        if ($userID === null) {
            return [];
        }
        $data = Internal\Data::getValue('bearcms/users/user/' . md5($userID) . '.json');
        if ($data !== null) {
            $user = json_decode($data, true);
            return isset($user['permissions']) ? $user['permissions'] : [];
        }
        return [];
    }
public function getPermissions ( ) : array { $ userID = $ this -> getID ( ) ; if ( $ userID === null ) { return [ ] ; } $ data = Internal \ Data :: getValue ( 'bearcms/users/user/' . md5 ( $ userID ) . '.json' ) ; if ( $ data !== null ) { $ user = json_decode ( $ data , true ) ; return isset ( $ user [ 'permissions' ] ) ? $ user [ 'permissions' ] : [ ] ; } return [ ] ; }
Returns the current logged in user permissions

@return array Array containing the permission of the current logged in user
Returns the current logged in user permissions