@@ -138,14 +138,14 @@ |
||
| 138 | 138 | if (!$this->test($resource, $privilege)) { |
| 139 | 139 | $msg = null === $privilege |
| 140 | 140 | ? sprintf( |
| 141 | - 'You are not allowed to access resource "%s"', |
|
| 142 | - is_object($resource) ? $resource->getResourceId() : $resource |
|
| 143 | - ) |
|
| 141 | + 'You are not allowed to access resource "%s"', |
|
| 142 | + is_object($resource) ? $resource->getResourceId() : $resource |
|
| 143 | + ) |
|
| 144 | 144 | : sprintf( |
| 145 | - 'You are not allowed to execute operation "%s" on resource "%s"', |
|
| 146 | - $privilege, |
|
| 147 | - is_object($resource) ? $resource->getResourceId() : $resource |
|
| 148 | - ); |
|
| 145 | + 'You are not allowed to execute operation "%s" on resource "%s"', |
|
| 146 | + $privilege, |
|
| 147 | + is_object($resource) ? $resource->getResourceId() : $resource |
|
| 148 | + ); |
|
| 149 | 149 | |
| 150 | 150 | if ($resource instanceof FileInterface && 0 == strpos($resource->getType(), 'image/')) { |
| 151 | 151 | throw new UnauthorizedImageAccessException(str_replace('resource', 'image', $msg)); |