1
1
Fork 0

New function "isAuthenticated"

This commit is contained in:
Michael 2019-09-28 18:09:11 +00:00
commit 83b00ef308
26 changed files with 64 additions and 48 deletions

View file

@ -365,7 +365,7 @@ function localize_item(&$item)
'network' => $item['author-network'], 'url' => $item['author-link']];
// Only create a redirection to a magic link when logged in
if (!empty($item['plink']) && (local_user() || remote_user())) {
if (!empty($item['plink']) && Session::isAuthenticated()) {
$item['plink'] = Contact::magicLinkByContact($author, $item['plink']);
}
}