mirror of
https://github.com/friendica/friendica
synced 2025-04-23 18:30:11 +00:00
Set profile fields for system user in Model\User::getOwnerDataById
- Address https://github.com/friendica/friendica/issues/10473#issuecomment-903676606 - This is required when Model\Profile::load is called for the system user for example
This commit is contained in:
parent
91e752e217
commit
e155821d7a
2 changed files with 13 additions and 7 deletions
|
@ -52,7 +52,7 @@ class Contacts extends Module\BaseProfile
|
|||
|
||||
$is_owner = $profile['uid'] == local_user();
|
||||
|
||||
if (!empty($profile['hide-friends']) && !$is_owner) {
|
||||
if ($profile['hide-friends'] && !$is_owner) {
|
||||
throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue