mirror of
https://github.com/friendica/friendica
synced 2025-04-23 21:50:10 +00:00
Expand system.no_auto_update to community, profile statuses and contact conversations pages
- Update setting name and description
This commit is contained in:
parent
6a3d40ab46
commit
e94911620a
4 changed files with 12 additions and 5 deletions
|
@ -42,8 +42,6 @@ class Profile extends BaseModule
|
|||
throw new ForbiddenException();
|
||||
}
|
||||
|
||||
$o = '';
|
||||
|
||||
$profile_uid = intval($_GET['p'] ?? 0);
|
||||
|
||||
// Ensure we've got a profile owner if updating.
|
||||
|
@ -57,6 +55,12 @@ class Profile extends BaseModule
|
|||
throw new ForbiddenException(DI::l10n()->t('Access to this profile has been restricted.'));
|
||||
}
|
||||
|
||||
$o = '';
|
||||
|
||||
if (empty($_GET['force']) && DI::pConfig()->get(local_user(), 'system', 'no_auto_update')) {
|
||||
System::htmlUpdateExit($o);
|
||||
}
|
||||
|
||||
// Get permissions SQL - if $remote_contact is true, our remote user has been pre-verified and we already have fetched his/her groups
|
||||
$sql_extra = Item::getPermissionsSQLByUserId($a->profile['uid']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue