mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- added PHP required comment;
This commit is contained in:
@@ -377,7 +377,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Users' ) ) {
|
||||
$rolename = UM()->roles()->get_priority_user_role( get_current_user_id() );
|
||||
$role = get_role( $rolename );
|
||||
|
||||
if( !current_user_can( 'edit_users' ) && !$role->has_cap( 'edit_users' ) ) {
|
||||
if ( ! current_user_can( 'edit_users' ) && ! $role->has_cap( 'edit_users' ) ) {
|
||||
wp_die( __( 'You do not have enough permissions to do that.', 'ultimate-member' ) );
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ Plugin URI: https://ultimatemember.com/
|
||||
Contributors: ultimatemember, champsupertramp, nsinelnikov
|
||||
Donate link:
|
||||
Tags: community, member, membership, user-profile, user-registration
|
||||
Requires PHP: 5.6
|
||||
Requires at least: 5.0
|
||||
Tested up to: 5.2
|
||||
Stable tag: 2.1.0
|
||||
|
||||
Reference in New Issue
Block a user