From 7061a98f5b6b07adb47a6de677055da53dc3479d Mon Sep 17 00:00:00 2001 From: oliver Date: Sat, 26 Mar 2016 18:01:08 +0100 Subject: [PATCH] fix permissions of QrController --- controllers/QrController.inc | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/controllers/QrController.inc b/controllers/QrController.inc index 9d2c43ef..c1e0e63b 100644 --- a/controllers/QrController.inc +++ b/controllers/QrController.inc @@ -26,6 +26,17 @@ * @var array */ public $models = array('seminaries', 'achievements', 'charactertitles', 'charactergroups', 'charactergroupsquests', 'charactergroupsqueststations', 'charactergroupsachievements'); + /** + * User permissions + * + * @var array + */ + public $permissions = array( + 'a' => array('admin', 'moderator', 'user'), + 'ct' => array('admin', 'moderator', 'user'), + 'cgqs' => array('admin', 'moderator', 'user'), + 'cga' => array('admin', 'moderator', 'user') + ); @@ -135,7 +146,15 @@ \hhu\z\controllers\components\NotificationComponent::TYPE_CHARACTERTITLE, ($character['gender'] === 1) ? $title['title_male'] - : $title['title_female'] + : $title['title_female'], + $this->linker->link( + array( + 'characters', + 'edit', + $seminary['url'], + $character['url'] + ) + ) ); // Redirect