src/Util/AdminObjectAclData.php
public function getUserPermissions()
    {
        $permissions = $this->getPermissions();

        if (!$this->isOwner()) {
            foreach (self::$ownerPermissions as $permission) {
                $key = array_search($permission, $permissions, true);
                if (false !== $key) {
                    unset($permissions[$key]);
                }
            }
        }

        return $permissions;
    }
public function getUserPermissions()
    {
        $permissions = $this->getPermissions();

        if (!$this->isOwner()) {
            foreach (self::$ownerPermissions as $permission) {
                $key = array_search($permission, $permissions, true);
                if (false !== $key) {
                    unset($permissions[$key]);
                }
            }
        }

        return $permissions;
    }
public function getUserPermissions ( ) { $ permissions = $ this -> getPermissions ( ) ; if ( ! $ this -> isOwner ( ) ) { foreach ( self :: $ ownerPermissions as $ permission ) { $ key = array_search ( $ permission , $ permissions , true ) ; if ( false !== $ key ) { unset ( $ permissions [ $ key ] ) ; } } } return $ permissions ; }
Get permissions that the current user can set.

@return array
Get permissions that the current user can set .