|
@@ -6,11 +6,11 @@ namespace gradeimporter;
|
|
use context_user;
|
|
use context_user;
|
|
|
|
|
|
class feedback {
|
|
class feedback {
|
|
- public static function is_capability() {
|
|
|
|
- global $USER;
|
|
|
|
|
|
+ public static function is_capability() {
|
|
|
|
+ global $USER;
|
|
|
|
|
|
- $usercontext = context_user::instance($USER->id);
|
|
|
|
- return has_capability('moodle/course:update', $usercontext);
|
|
|
|
|
|
+ $usercontext = context_user::instance($USER->id);
|
|
|
|
+ return has_capability('moodle/course:update', $usercontext);
|
|
}
|
|
}
|
|
|
|
|
|
public static function get_comments() {
|
|
public static function get_comments() {
|