Merge remote-tracking branch 'remotes/origin/fix/helpscout#25823'

This commit is contained in:
nikitozzzzzzz
2018-11-20 17:53:24 +02:00
+1 -1
View File
@@ -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;
}