mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Removed mod/workshop:view
This commit is contained in:
parent
29bbc6e730
commit
7ce56c1282
@ -24,8 +24,7 @@
|
||||
}
|
||||
|
||||
require_login($course->id, false, $cm);
|
||||
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
require_capability('mod/workshop:view', $context);
|
||||
|
||||
|
||||
if (!$redirect) {
|
||||
//seems not to work properly
|
||||
|
@ -64,7 +64,6 @@
|
||||
|
||||
require_login($course->id, false, $cm);
|
||||
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
require_capability('mod/workshop:view', $context);
|
||||
|
||||
$navigation = "";
|
||||
if ($course->category) {
|
||||
|
@ -6,20 +6,6 @@
|
||||
*/
|
||||
$mod_workshop_capabilities = array(
|
||||
|
||||
'mod/workshop:view' => array(
|
||||
|
||||
'captype' => 'read',
|
||||
'contextlevel' => CONTEXT_MODULE,
|
||||
'legacy' => array(
|
||||
'guest' => CAP_ALLOW,
|
||||
'student' => CAP_ALLOW,
|
||||
'teacher' => CAP_ALLOW,
|
||||
'editingteacher' => CAP_ALLOW,
|
||||
'coursecreator' => CAP_ALLOW,
|
||||
'admin' => CAP_ALLOW
|
||||
)
|
||||
),
|
||||
|
||||
'mod/workshop:participate' => array(
|
||||
|
||||
'riskbitmask' => RISK_SPAM,
|
||||
|
@ -45,7 +45,6 @@
|
||||
|
||||
require_login($course->id, false, $cm);
|
||||
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
require_capability('mod/workshop:view', $context);
|
||||
|
||||
$strworkshops = get_string("modulenameplural", "workshop");
|
||||
$strworkshop = get_string("modulename", "workshop");
|
||||
|
@ -18,8 +18,6 @@
|
||||
}
|
||||
|
||||
require_login($course->id, false, $cm);
|
||||
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
require_capability('mod/workshop:view', $context);
|
||||
|
||||
$strworkshops = get_string('modulenameplural', 'workshop');
|
||||
$strworkshop = get_string('modulename', 'workshop');
|
||||
|
@ -37,7 +37,6 @@
|
||||
|
||||
require_login($course->id, false, $cm);
|
||||
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
require_capability('mod/workshop:view', $context);
|
||||
|
||||
$strworkshops = get_string("modulenameplural", "workshop");
|
||||
$strworkshop = get_string("modulename", "workshop");
|
||||
@ -525,8 +524,6 @@
|
||||
|
||||
/****************** show description ************/
|
||||
elseif ($action == 'showdescription') {
|
||||
require_capability('mod/workshop:view', $context);
|
||||
|
||||
workshop_print_assignment_info($workshop);
|
||||
print_simple_box(format_text($workshop->description, $workshop->format), 'center', '70%', '', 5, 'generalbox', 'intro');
|
||||
if (isset($_SERVER["HTTP_REFERER"])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user