Skip to content

Commit a59d9b8

Browse files
committed
Fixed conditional issue
1 parent 9be493d commit a59d9b8

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)