Skip to content

Commit

Permalink
Merge pull request #57 from libis/fix/notification_type_param
Browse files Browse the repository at this point in the history
correct addNotification param type
  • Loading branch information
collectiveaccess authored Jan 9, 2023
2 parents d9ca79d + 16a0c9d commit f803685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/DetailController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f803685

Please sign in to comment.