diff --git a/src/mibew/configs/routing.yml b/src/mibew/configs/routing.yml index c6b33890..6d960d26 100644 --- a/src/mibew/configs/routing.yml +++ b/src/mibew/configs/routing.yml @@ -187,21 +187,24 @@ canned_message_add: path: /operator/canned-message/add defaults: _controller: Mibew\Controller\CannedMessageController::showEditFormAction - _access_check: Mibew\AccessControl\Check\LoggedInCheck + _access_check: Mibew\AccessControl\Check\PermissionsCheck + _access_permissions: [CAN_ADMINISTRATE] methods: [GET] canned_message_add_save: path: /operator/canned-message/add defaults: _controller: Mibew\Controller\CannedMessageController::submitEditFormAction - _access_check: Mibew\AccessControl\Check\LoggedInCheck + _access_check: Mibew\AccessControl\Check\PermissionsCheck + _access_permissions: [CAN_ADMINISTRATE] methods: [POST] canned_message_delete: path: /operator/canned-message/{message_id}/delete defaults: _controller: Mibew\Controller\CannedMessageController::deleteAction - _access_check: Mibew\AccessControl\Check\LoggedInCheck + _access_check: Mibew\AccessControl\Check\PermissionsCheck + _access_permissions: [CAN_ADMINISTRATE] requirements: message_id: \d{1,10} @@ -209,7 +212,8 @@ canned_message_edit: path: /operator/canned-message/{message_id}/edit defaults: _controller: Mibew\Controller\CannedMessageController::showEditFormAction - _access_check: Mibew\AccessControl\Check\LoggedInCheck + _access_check: Mibew\AccessControl\Check\PermissionsCheck + _access_permissions: [CAN_ADMINISTRATE] requirements: message_id: \d{1,10} methods: [GET] @@ -218,7 +222,8 @@ canned_message_edit_save: path: /operator/canned-message/{message_id}/edit defaults: _controller: Mibew\Controller\CannedMessageController::submitEditFormAction - _access_check: Mibew\AccessControl\Check\LoggedInCheck + _access_check: Mibew\AccessControl\Check\PermissionsCheck + _access_permissions: [CAN_ADMINISTRATE] requirements: message_id: \d{1,10} methods: [POST] @@ -227,7 +232,8 @@ canned_messages: path: /operator/canned-message defaults: _controller: Mibew\Controller\CannedMessageController::indexAction - _access_check: Mibew\AccessControl\Check\LoggedInCheck + _access_check: Mibew\AccessControl\Check\PermissionsCheck + _access_permissions: [CAN_ADMINISTRATE] ## Groups group_add: diff --git a/src/mibew/styles/pages/default/templates_src/server_side/_menu.handlebars b/src/mibew/styles/pages/default/templates_src/server_side/_menu.handlebars index ba46f701..89e64942 100644 --- a/src/mibew/styles/pages/default/templates_src/server_side/_menu.handlebars +++ b/src/mibew/styles/pages/default/templates_src/server_side/_menu.handlebars @@ -22,11 +22,11 @@ {{/if}} -
  • -

    {{l10n "Administration"}}

    - +
  • + {{/if}}
  • {{l10n "Other"}}