Skip to content

Commit

Permalink
Permission cap restored
Browse files Browse the repository at this point in the history
  • Loading branch information
shewa12 committed Jan 13, 2025
1 parent 8f9291b commit 5822ccb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions classes/Course.php
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,7 @@ public function ajax_create_new_draft_course() {
* @return void
*/
public function ajax_course_list() {
tutor_utils()->checking_nonce();
tutor_utils()->check_current_user_capability();
$this->check_access();

$limit = Input::post( 'limit', 10, Input::TYPE_INT );
$offset = Input::post( 'offset', 0, Input::TYPE_INT );
Expand Down

0 comments on commit 5822ccb

Please sign in to comment.