Replace last instance of local_user() used to guess authentication status in Module/Contact/Hovercard
This commit is contained in:
@@ -71,7 +71,7 @@ class Hovercard extends BaseModule
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get the photo_menu - the menu if possible contact actions
|
// Get the photo_menu - the menu if possible contact actions
|
||||||
if (local_user()) {
|
if (Session::isAuthenticated()) {
|
||||||
$actions = Contact::photoMenu($contact);
|
$actions = Contact::photoMenu($contact);
|
||||||
} else {
|
} else {
|
||||||
$actions = [];
|
$actions = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user