Gdn_Session::getPermissions PHP Method

getPermissions() public method

Returns all "allowed" permissions for the authenticated user in a one-dimensional array of permission names.
Deprecation: We want to make this an accessor for the permissions property.
public getPermissions ( ) : array
return array
    public function getPermissions()
    {
        deprecated('Gdn_Session->getPermissions()', 'Gdn_Session->getPermissionsArray()');
        return $this->permissions->getPermissions();
    }