Commit c985d103 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Pass exception message to avoid warning in the logs

parent a2136d1f
...@@ -2030,7 +2030,7 @@ class View { ...@@ -2030,7 +2030,7 @@ class View {
$userid = $USER->get('id'); $userid = $USER->get('id');
require_once(get_config('libroot') . 'group.php'); require_once(get_config('libroot') . 'group.php');
if (!group_user_access($groupid)) { if (!group_user_access($groupid)) {
throw new AccessDeniedException(); throw new AccessDeniedException(get_string('accessdenied', 'error'));
} }
$from = ' $from = '
FROM {view} v FROM {view} v
...@@ -2488,7 +2488,7 @@ function objection_form_submit(Pieform $form, $values) { ...@@ -2488,7 +2488,7 @@ function objection_form_submit(Pieform $form, $values) {
global $USER, $view, $artefact; global $USER, $view, $artefact;
if (!$USER->is_logged_in()) { if (!$USER->is_logged_in()) {
throw new AccessDeniedException(); throw new AccessDeniedException(get_string('accessdenied', 'error'));
} }
require_once('activity.php'); require_once('activity.php');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment