Skip to content

Commit 050f980

Browse files
committed
Fix: Permission issue
1 parent 52e55fe commit 050f980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function lifter_reviews_count() {
7575
* @return void
7676
*/
7777
public static function check_course_access() {
78-
if ( current_user_can( 'manage_options' ) || ! current_user_can( 'publish_tutor_courses' ) ) {
78+
if ( ! current_user_can( 'manage_options' ) || ! current_user_can( 'publish_tutor_courses' ) ) {
7979
wp_send_json(
8080
array(
8181
'success' => false,

0 commit comments

Comments
 (0)