| @@ -148,9 +148,9 @@ | ||
| 148 | 148 | public function tutor_instructor_feedback() { |
| 149 | 149 | tutor_utils()->checking_nonce(); |
| 150 | 150 | |
| 151 | 151 | // Check if user is privileged. |
| 152 | - if ( ! current_user_can( 'administrator' ) ) { | |
| 152 | + if ( ! User::has_any_role( array( User::ADMIN, User::INSTRUCTOR ) ) ) { | |
| 153 | 153 | wp_send_json_error( tutor_utils()->error_message() ); |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | $attempt_details = self::attempt_details( Input::post( 'attempt_id', 0, Input::TYPE_INT ) ); |