From ae082716c773261dfc7f6c47bf65ed9b91501557 Mon Sep 17 00:00:00 2001 From: poltawski Date: Wed, 30 Jan 2008 20:58:55 +0000 Subject: [PATCH] MDL-13255 - hidden activity capability check was wrong, but require_login() handles it for us when passsed $cm --- mod/data/view.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mod/data/view.php b/mod/data/view.php index 5b9d1a0ea1..b12ca265ad 100755 --- a/mod/data/view.php +++ b/mod/data/view.php @@ -85,14 +85,6 @@ $context = get_context_instance(CONTEXT_MODULE, $cm->id); require_capability('mod/data:viewentry', $context); -/// If it's hidden then it's don't show anything. :) - if (empty($cm->visible) and !has_capability('mod/data:managetemplates', $context)) { - $navigation = build_navigation('', $cm); - print_header_simple(format_string($data->name), "", - $navigation, "", "", true, '', navmenu($course, $cm)); - notice(get_string("activityiscurrentlyhidden")); - } - /// If we have an empty Database then redirect because this page is useless without data if (has_capability('mod/data:managetemplates', $context)) { if (!record_exists('data_fields','dataid',$data->id)) { // Brand new database! -- 2.39.5