mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Tweak cap
This commit is contained in:
@@ -244,7 +244,7 @@ if ( ! class_exists( 'um\core\Secure' ) ) {
|
||||
}
|
||||
|
||||
if ( user_can( $user_id, 'manage_options' ) ) {
|
||||
$this->revoke_caps( $cap, $user );
|
||||
$this->revoke_caps( 'manage_options', $user );
|
||||
$has_admin_cap = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user