rating MDL-23908 made some progress resolving the get roles with capability problem
authorAndrew Davis <andrew@affinitysoftware.net>
Thu, 26 Aug 2010 02:58:55 +0000 (02:58 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Thu, 26 Aug 2010 02:58:55 +0000 (02:58 +0000)
course/moodleform_mod.php

index 3836312..159d57a 100644 (file)
@@ -353,7 +353,7 @@ abstract class moodleform_mod extends moodleform {
 
             $mform->addElement('header', 'modstandardratings', get_string('ratings', 'rating'));
 
-            $permission=null;
+            $permission=CAP_ALLOW;
             $context = get_context_instance(CONTEXT_MODULE, $this->_cm->id);
 
             $roles1 = get_roles_with_capability('moodle/rating:rate', $permission, $context);