Commit 371490ae authored by Yuliya Bozhko's avatar Yuliya Bozhko Committed by Robert Lyon
Browse files

Make sure submitted page cannot be deleted via URL (Bug #1425306)

Change-Id: I4536536d254d9dc85c9eb8405bd6ab61c0ae26e9
Signed-off-by: default avatarYuliya Bozhko <>
parent ab4302ad
......@@ -17,7 +17,7 @@ $viewid = param_integer('id');
$view = new View($viewid, null);
if (!$view || !$USER->can_edit_view($view)) {
if (!$view || !$USER->can_edit_view($view) || $view->is_submitted()) {
throw new AccessDeniedException(get_string('cantdeleteview', 'view'));
$groupid = $view->get('group');
Markdown is supported
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