Commit 868e05c9 by Cecilia Vela Gurovic Committed by Robert Lyon

Bug 1666102: Check for edit permissions when deleting a journal

behatnotneeded Change-Id: I8129db13fd22a16c763e5ce24074957082ac4f22 (cherry picked from commit 865d1858)
parent f78caa47
......@@ -120,7 +120,7 @@ function delete_blog_submit(Pieform $form, $values) {
global $SESSION;
require_once('embeddedimage.php');
$blog = new ArtefactTypeBlog($values['delete']);
$blog->check_permission();
$blog->check_permission(true);
$institution = $blog->get('institution');
$group = $blog->get('group');
if ($blog->get('locked')) {
......
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