mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-20 15:13:55 +09:00
Merge pull request #708 from ultimatemember/fix/restrict_add_administrator
administrator user role to restriction
This commit is contained in:
@@ -559,7 +559,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
|
|||||||
'label' => __( 'Select which roles can access this content', 'ultimate-member' ),
|
'label' => __( 'Select which roles can access this content', 'ultimate-member' ),
|
||||||
'description' => __( 'Activate content restriction for this post', 'ultimate-member' ),
|
'description' => __( 'Activate content restriction for this post', 'ultimate-member' ),
|
||||||
'value' => $_um_access_roles_value,
|
'value' => $_um_access_roles_value,
|
||||||
'options' => UM()->roles()->get_roles( false, array( 'administrator' ) ),
|
'options' => UM()->roles()->get_roles( false ),
|
||||||
'columns' => 3,
|
'columns' => 3,
|
||||||
'conditional' => array( '_um_accessible', '=', '2' )
|
'conditional' => array( '_um_accessible', '=', '2' )
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|||||||
'label' => __( 'Select which roles can access this content', 'ultimate-member' ),
|
'label' => __( 'Select which roles can access this content', 'ultimate-member' ),
|
||||||
'tooltip' => __( 'Activate content restriction for this post', 'ultimate-member' ),
|
'tooltip' => __( 'Activate content restriction for this post', 'ultimate-member' ),
|
||||||
'value' => $_um_access_roles_value,
|
'value' => $_um_access_roles_value,
|
||||||
'options' => UM()->roles()->get_roles( false, array( 'administrator' ) ),
|
'options' => UM()->roles()->get_roles( false ),
|
||||||
'columns' => 3,
|
'columns' => 3,
|
||||||
'conditional' => array( '_um_accessible', '=', '2' )
|
'conditional' => array( '_um_accessible', '=', '2' )
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user