@@ -23,7 +23,7 @@ |
||
| 23 | 23 | echo '<span class="toolbar_label">' . $data['l10n_midcom']->get('delete') . '</span></a></li>'; |
| 24 | 24 | if ( midcom::get()->config->get('auth_allow_trusted') === true |
| 25 | 25 | && $data['person']->can_do('org.openpsa.user:su')) { |
| 26 | - echo '<li><a class="button" href="' . $data['router']->generate('account_su', ['guid' => $data['person']->guid]) . '">' . $data['l10n']->get('switch to user') . "</a></li>\n"; |
|
| 26 | + echo '<li><a class="button" href="' . $data['router']->generate('account_su', ['guid' => $data['person']->guid]) . '">' . $data['l10n']->get('switch to user') . "</a></li>\n"; |
|
| 27 | 27 | } |
| 28 | 28 | echo "</ul>\n"; |
| 29 | 29 | } |
@@ -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 | } |