public function getAcl($node)
    {
        if (is_string($node)) {
            $node = $this->server->tree->getNodeForPath($node);
        }
        if (!$node instanceof IACL) {
            return $this->getDefaultAcl();
        }
        $acl = $node->getACL();
        foreach ($this->adminPrincipals as $adminPrincipal) {
            $acl[] = [
                'principal' => $adminPrincipal,
                'privilege' => '{DAV:}all',
                'protected' => true,
            ];
        }

        return $acl;
    }
public function getAcl($node)
    {
        if (is_string($node)) {
            $node = $this->server->tree->getNodeForPath($node);
        }
        if (!$node instanceof IACL) {
            return $this->getDefaultAcl();
        }
        $acl = $node->getACL();
        foreach ($this->adminPrincipals as $adminPrincipal) {
            $acl[] = [
                'principal' => $adminPrincipal,
                'privilege' => '{DAV:}all',
                'protected' => true,
            ];
        }

        return $acl;
    }
public function getAcl ( $ node ) { if ( is_string ( $ node ) ) { $ node = $ this -> server -> tree -> getNodeForPath ( $ node ) ; } if ( ! $ node instanceof IACL ) { return $ this -> getDefaultAcl ( ) ; } $ acl = $ node -> getACL ( ) ; foreach ( $ this -> adminPrincipals as $ adminPrincipal ) { $ acl [ ] = [ 'principal' => $ adminPrincipal , 'privilege' => '{DAV:}all' , 'protected' => true , ] ; } return $ acl ; }
Returns the full ACL list.

Either a uri or a INode may be passed.

null will be returned if the node doesn't support ACLs.

@param string|DAV\INode $node

@return array
Returns the full ACL list .