| @@ 114-127 (lines=14) @@ | ||
| 111 | 'principal' => $this->getOwner(), |
|
| 112 | 'protected' => true, |
|
| 113 | ]; |
|
| 114 | if ($this->getOwner() !== parent::getOwner()) { |
|
| 115 | $acl[] = [ |
|
| 116 | 'privilege' => '{DAV:}read', |
|
| 117 | 'principal' => parent::getOwner(), |
|
| 118 | 'protected' => true, |
|
| 119 | ]; |
|
| 120 | if ($this->canWrite()) { |
|
| 121 | $acl[] = [ |
|
| 122 | 'privilege' => '{DAV:}write', |
|
| 123 | 'principal' => parent::getOwner(), |
|
| 124 | 'protected' => true, |
|
| 125 | ]; |
|
| 126 | } |
|
| 127 | } |
|
| 128 | if ($this->getOwner() === 'principals/system/system') { |
|
| 129 | $acl[] = [ |
|
| 130 | 'privilege' => '{DAV:}read', |
|
| @@ 148-160 (lines=13) @@ | ||
| 145 | 'principal' => parent::getOwner(), |
|
| 146 | 'protected' => true, |
|
| 147 | ]; |
|
| 148 | if ($this->canWrite()) { |
|
| 149 | $acl[] = [ |
|
| 150 | 'privilege' => '{DAV:}write', |
|
| 151 | 'principal' => parent::getOwner(), |
|
| 152 | 'protected' => true, |
|
| 153 | ]; |
|
| 154 | } else { |
|
| 155 | $acl[] = [ |
|
| 156 | 'privilege' => '{DAV:}write-properties', |
|
| 157 | 'principal' => parent::getOwner(), |
|
| 158 | 'protected' => true, |
|
| 159 | ]; |
|
| 160 | } |
|
| 161 | } |
|
| 162 | if ($this->isPublic()) { |
|
| 163 | $acl[] = [ |
|