]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Update/Profile.php
Merge remote-tracking branch 'upstream/develop' into write-tags
[friendica.git] / src / Module / Update / Profile.php
index 662042eb11ef1e7437df82535a4e10acb87e02bd..38ef3b09e028cec4b842395dec91fc3c33223c55 100644 (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']);