| @@ 45-53 (lines=9) @@ | ||
| 42 | * |
|
| 43 | * @return array |
|
| 44 | */ |
|
| 45 | function getACL() { |
|
| 46 | $acl = parent::getACL(); |
|
| 47 | $acl[] = [ |
|
| 48 | 'privilege' => '{DAV:}read', |
|
| 49 | 'principal' => '{DAV:}authenticated', |
|
| 50 | 'protected' => true, |
|
| 51 | ]; |
|
| 52 | return $acl; |
|
| 53 | } |
|
| 54 | ||
| 55 | } |
|
| 56 | ||
| @@ 63-75 (lines=13) @@ | ||
| 60 | * |
|
| 61 | * @return array |
|
| 62 | */ |
|
| 63 | function getACL() { |
|
| 64 | ||
| 65 | $acl = parent::getACL(); |
|
| 66 | if ($this->principalUri === 'principals/system/system') { |
|
| 67 | $acl[] = [ |
|
| 68 | 'privilege' => '{DAV:}read', |
|
| 69 | 'principal' => '{DAV:}authenticated', |
|
| 70 | 'protected' => true, |
|
| 71 | ]; |
|
| 72 | } |
|
| 73 | ||
| 74 | return $acl; |
|
| 75 | } |
|
| 76 | ||
| 77 | } |
|
| 78 | ||