Expand system.no_auto_update to community, profile statuses and contact conversations pages

- Update setting name and description
This commit is contained in:
Hypolite Petovan 2020-02-23 19:38:24 -05:00
parent 6a3d40ab46
commit e94911620a
4 changed files with 12 additions and 5 deletions

View file

@ -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']);