Skip to content

Commit a09fb05

Browse files
author
Kara Beason
committed
check for manageactvities capability
1 parent 5549bf0 commit a09fb05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

execute_task.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
// Know which course we're in, so can authorize the user
5353
require_login($coursecontext->instanceid);
5454
// Check current user's capabilities.
55-
require_capability('moodle/course:update', $coursecontext);
55+
require_capability('moodle/course:manageactivities', $coursecontext);
5656

5757
// At this user is authenticated, and authorized to submit the task
5858
$blockinstance = block_instance('sentimentanalysis', $instancerec);

0 commit comments

Comments
 (0)