@@ -9,11 +9,11 @@ |
||
| 9 | 9 | use midcom\datamanager\indexer\client; |
| 10 | 10 | use midcom\datamanager\datamanager; |
| 11 | 11 | |
| 12 | - /** |
|
| 13 | - * Indexer client class |
|
| 14 | - * |
|
| 15 | - * @package org.openpsa.invoices |
|
| 16 | - */ |
|
| 12 | + /** |
|
| 13 | + * Indexer client class |
|
| 14 | + * |
|
| 15 | + * @package org.openpsa.invoices |
|
| 16 | + */ |
|
| 17 | 17 | class org_openpsa_invoices_midcom_indexer extends client |
| 18 | 18 | { |
| 19 | 19 | public function prepare_document(midcom_services_indexer_document $document, datamanager $dm) |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | if ( !$this->can_do('midgard:update') |
| 205 | 205 | || !$this->can_do('midgard:parameters')) { |
| 206 | 206 | debug_add("Failed to set parameters, midgard:update or midgard:parameters on " . static::class . " {$this->guid} not granted for the current user.", |
| 207 | - MIDCOM_LOG_ERROR); |
|
| 207 | + MIDCOM_LOG_ERROR); |
|
| 208 | 208 | midcom_connection::set_error(MGD_ERR_ACCESS_DENIED); |
| 209 | 209 | return false; |
| 210 | 210 | } |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | if ( !$this->can_do('midgard:update') |
| 249 | 249 | || !$this->can_do('midgard:parameters')) { |
| 250 | 250 | debug_add("Failed to delete parameters, midgard:update or midgard:parameters on " . static::class . " {$this->guid} not granted for the current user.", |
| 251 | - MIDCOM_LOG_ERROR); |
|
| 251 | + MIDCOM_LOG_ERROR); |
|
| 252 | 252 | midcom_connection::set_error(MGD_ERR_ACCESS_DENIED); |
| 253 | 253 | return false; |
| 254 | 254 | } |
@@ -253,15 +253,15 @@ |
||
| 253 | 253 | private static array $_default_magic_class_privileges = []; |
| 254 | 254 | |
| 255 | 255 | /** |
| 256 | - * Internal cache of the content privileges of users on content objects, this is |
|
| 257 | - * an associative array using a combination of the user identifier and the object's |
|
| 258 | - * guid as index. The privileges for the anonymous user use the magic |
|
| 259 | - * EVERYONE as user identifier. |
|
| 260 | - * |
|
| 261 | - * This must not be merged with the class-wide privileges_cache, because otherwise |
|
| 262 | - * class_default_privileges for child objects might be overridden by parent default |
|
| 263 | - * privileges |
|
| 264 | - */ |
|
| 256 | + * Internal cache of the content privileges of users on content objects, this is |
|
| 257 | + * an associative array using a combination of the user identifier and the object's |
|
| 258 | + * guid as index. The privileges for the anonymous user use the magic |
|
| 259 | + * EVERYONE as user identifier. |
|
| 260 | + * |
|
| 261 | + * This must not be merged with the class-wide privileges_cache, because otherwise |
|
| 262 | + * class_default_privileges for child objects might be overridden by parent default |
|
| 263 | + * privileges |
|
| 264 | + */ |
|
| 265 | 265 | private static array $_content_privileges_cache = []; |
| 266 | 266 | |
| 267 | 267 | /** |