From 16a0c9d77c75acd7688356bba105f9e8d13f0988 Mon Sep 17 00:00:00 2001 From: "peter.janssens" Date: Mon, 9 Jan 2023 10:58:07 +0100 Subject: [PATCH] correct addNotification param type --- app/controllers/DetailController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/DetailController.php b/app/controllers/DetailController.php index 491d560d79..4caabe1b34 100644 --- a/app/controllers/DetailController.php +++ b/app/controllers/DetailController.php @@ -242,7 +242,7 @@ public function __call($function, $args) { # Enforce access control # if(sizeof($this->opa_access_values) && ($t_subject->hasField('access')) && (!in_array($t_subject->get("access"), $this->opa_access_values))){ - $this->notification->addNotification(_t("This item is not available for view"), "message"); + $this->notification->addNotification(_t("This item is not available for view"), __NOTIFICATION_TYPE_INFO__); $this->response->setRedirect(caNavUrl($this->request, "", "", "", "")); return; }