Skip to content

Commit

Permalink
= 4.2.6.4 =
Browse files Browse the repository at this point in the history
~ Remove cap unfiltered_html of Instructor
  • Loading branch information
tungnxt89 committed Mar 13, 2024
1 parent 3933e0f commit 5540b6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/user/lp-user-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ function learn_press_add_user_roles() {
$teacher->add_cap( 'edit_' . $course_cap );
$teacher->add_cap( 'delete_' . $course_cap );
//$teacher->add_cap( 'unfiltered_html' );
if ( $teacher->has_cap( 'unfiltered_html' ) ) {
$teacher->remove_cap( 'unfiltered_html' );
}

$settings->get( 'required_review' );

Expand Down

0 comments on commit 5540b6e

Please sign in to comment.