Skip to content
Browse files

Merged from 1.8.

  • Loading branch information...
1 parent 217a8ee commit 2585a68d5469ba24e086b9e0264551111682cc47 vyshane committed Feb 16, 2007
View
3 blocks/rss_client/db/access.php
@@ -40,7 +40,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -51,7 +50,6 @@
'contextlevel' => CONTEXT_SYSTEM,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -63,7 +61,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
View
2 course/category.php
@@ -325,7 +325,7 @@
echo'<a title="'.get_string('assignroles', 'role').'" href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.$coursecontext->id.'"><img src="'.$CFG->pixpath.'/i/roles.gif" class="iconsmall" alt="'.get_string('assignroles', 'role').'" /></a>';
}
- if (has_capability('moodle/course:delete', $coursecontext)) {
+ if (can_delete_course($acourse->id)) {
echo '<a title="'.$strdelete.'" href="delete.php?id='.$acourse->id.'">'.
'<img src="'.$CFG->pixpath.'/t/delete.gif" class="iconsmall" alt="'.$strdelete.'" /></a> ';
}
View
4 course/delete.php
@@ -8,7 +8,9 @@
require_login();
- require_capability('moodle/course:delete', get_context_instance(CONTEXT_SYSTEM, SITEID));
+ if (!can_delete_course($id)) {
+ error('You do not have the permission to delete this course.');
+ }
if (!$site = get_site()) {
error("Site not found!");
View
1 course/edit.php
@@ -26,7 +26,6 @@
error('Category ID was incorrect');
}
require_capability('moodle/course:create', get_context_instance(CONTEXT_COURSECAT, $category->id));
-
} else {
error('Either course id or category must be specified');
}
View
33 course/lib.php
@@ -2540,4 +2540,35 @@ function get_section_name($format) {
return $sectionname;
}
-?>
+/**
+ * Can the current user delete this course?
+ * @param int $courseid
+ * @return boolean
+ *
+ * Exception here to fix MDL-7796.
+ *
+ * FIXME
+ * Course creators who can manage activities in the course
+ * shoule be allowed to delete the course. We do it this
+ * way because we need a quick fix to bring the functionality
+ * in line with what we had pre-roles. We can't give the
+ * default course creator role moodle/course:delete at
+ * CONTEXT_SYSTEM level because this will allow them to
+ * delete any course in the site. So we hard code this here
+ * for now.
+ *
+ * @author vyshane AT gmail.com
+ */
+function can_delete_course($courseid) {
+
+ $context = get_context_instance(CONTEXT_COURSE, $courseid);
+
+ return ( has_capability('moodle/course:delete', $context)
+ || (has_capability('moodle/legacy:coursecreator', $context)
+ && has_capability('moodle/course:manageactivities', $context)) );
+}
+
+
+
+
+?>
View
30 lib/db/access.php
@@ -178,7 +178,6 @@
'contextlevel' => CONTEXT_SYSTEM,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -190,7 +189,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -213,7 +211,6 @@
'contextlevel' => CONTEXT_SYSTEM,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -227,7 +224,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -348,7 +344,6 @@
'contextlevel' => CONTEXT_SYSTEM,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -477,7 +472,6 @@
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -491,7 +485,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -505,7 +498,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -519,7 +511,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -529,7 +520,6 @@
'captype' => 'read',
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -539,7 +529,6 @@
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -552,7 +541,6 @@
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -565,7 +553,6 @@
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -576,7 +563,6 @@
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -587,7 +573,6 @@
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -599,7 +584,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -612,7 +596,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -625,7 +608,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -636,7 +618,6 @@
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -647,7 +628,6 @@
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -658,7 +638,6 @@
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -725,7 +704,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -751,7 +729,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -791,7 +768,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -837,7 +813,6 @@
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -873,7 +848,6 @@
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -894,7 +868,6 @@
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -905,7 +878,6 @@
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -919,7 +891,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -932,7 +903,6 @@
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
View
2 mod/assignment/db/access.php
@@ -42,7 +42,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -63,7 +62,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
)
View
3 mod/chat/db/access.php
@@ -43,7 +43,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -56,7 +55,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -68,7 +66,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
)
View
4 mod/choice/db/access.php
@@ -41,7 +41,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -53,7 +52,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -65,7 +63,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -77,7 +74,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
)
View
10 mod/data/db/access.php
@@ -42,7 +42,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -57,7 +56,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -72,7 +70,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -84,7 +81,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -96,7 +92,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -108,7 +103,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -122,7 +116,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -136,7 +129,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -150,7 +142,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -162,7 +153,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
View
1 mod/exercise/db/access.php
@@ -40,7 +40,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
)
View
16 mod/forum/db/access.php
@@ -42,7 +42,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -54,7 +53,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -69,7 +67,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -84,7 +81,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -97,7 +93,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -109,7 +104,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -121,7 +115,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -136,7 +129,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -149,7 +141,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -161,7 +152,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -173,7 +163,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -185,7 +174,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -199,7 +187,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -211,7 +198,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -223,7 +209,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -235,7 +220,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
View
2 mod/forum/lib.php
@@ -291,7 +291,7 @@ function forum_cron() {
'Precedence: Bulk',
'List-Id: "'.$cleanforumname.'" <moodleforum'.$forum->id.'@'.$hostname.'>',
'List-Help: '.$CFG->wwwroot.'/mod/forum/view.php?f='.$forum->id,
- 'Message-Id: <moodlepost'.$post->id.'@'.$hostname.'>',
+ 'Message-ID: <moodlepost'.$post->id.'@'.$hostname.'>',
'In-Reply-To: <moodlepost'.$post->parent.'@'.$hostname.'>',
'References: <moodlepost'.$post->parent.'@'.$hostname.'>',
'X-Course-Id: '.$course->id,
View
10 mod/glossary/db/access.php
@@ -43,7 +43,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -57,7 +56,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -71,7 +69,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -86,7 +83,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -100,7 +96,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -114,7 +109,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -126,7 +120,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -140,7 +133,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -152,7 +144,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -164,7 +155,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
View
4 mod/hotpot/db/access.php
@@ -41,7 +41,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -53,7 +52,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -65,7 +63,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -76,7 +73,6 @@
'contextlevel' => CONTEXT_MODULE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
)
View
2 mod/lesson/db/access.php
@@ -14,7 +14,6 @@
'contextlevel' => CONTEXT_MODULE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -26,7 +25,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
)
View
6 mod/quiz/db/access.php
@@ -17,7 +17,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -39,7 +38,6 @@
'contextlevel' => CONTEXT_MODULE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -52,7 +50,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -65,7 +62,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -78,7 +74,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -90,7 +85,6 @@
'contextlevel' => CONTEXT_MODULE,
'legacy' => array(
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
View
4 mod/scorm/db/access.php
@@ -40,7 +40,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -62,7 +61,7 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
+ 'admin' => CAP_ALLOW
)
),
@@ -74,7 +73,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
)
View
3 mod/survey/db/access.php
@@ -41,7 +41,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -53,7 +52,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -65,7 +63,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
)
View
2 mod/wiki/db/access.php
@@ -16,7 +16,6 @@
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),
@@ -43,7 +42,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
)
View
1 mod/workshop/db/access.php
@@ -26,7 +26,6 @@
'legacy' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
- 'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
)

0 comments on commit 2585a68

Please sign in to comment.
Something went wrong with that request. Please try again.