Skip to content

Commit

Permalink
Merge pull request #2639 from QuizandSurveyMaster/CU-85ztkvkek-qsm-ul…
Browse files Browse the repository at this point in the history
…timate-hooks

Cu 85ztkvkek qsm ultimate hooks
  • Loading branch information
zubairraeen authored Sep 10, 2024
2 parents d227ab0 + da9ce21 commit ceaec61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mlw_quizmaster2.php
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ public function setup_admin_menu() {
$enabled = get_option( 'qsm_multiple_category_enabled' );
$menu_position = self::get_free_menu_position(26.1, 0.3);
$settings = (array) get_option( 'qmn-settings' );
if ( ! class_exists('QSM_User_Role') ) {
if ( ! class_exists('QSM_Ultimate') ) {
$user = wp_get_current_user();
if ( in_array( 'subscriber', (array) $user->roles, true ) ) {
$role_capabilities = get_role( 'subscriber' );
Expand Down
2 changes: 1 addition & 1 deletion php/admin/quiz-options-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function qsm_generate_quiz_options() {
//user role addon is active
apply_filters('qsm_user_role_permission_page',true);
// Check user capability
if ( ! class_exists('QSM_User_Role') ) {
if ( ! class_exists('QSM_Ultimate') ) {
$user = wp_get_current_user();
if ( in_array( 'author', (array) $user->roles, true ) ) {
$user_id = sanitize_text_field( $user->ID );
Expand Down

0 comments on commit ceaec61

Please sign in to comment.