mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
fix method 'can_view_tab'
This commit is contained in:
@@ -218,7 +218,7 @@ if ( ! class_exists( 'um\core\Profile' ) ) {
|
||||
*/
|
||||
function can_view_tab( $tab ) {
|
||||
|
||||
$target_id = UM()->user()->target_id;
|
||||
$target_id = (int) UM()->user()->target_id;
|
||||
if ( empty( $target_id ) ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user