]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Admin/Tos.php
Issue-9358 (now for real) commenting and updating on contact now work
[friendica.git] / src / Module / Admin / Tos.php
index fef199c351fac87b111db9f568b80016bb5ab1bf..5ad3a72ddc0d277c1aaf4b6985adb52b9e62d4c3 100644 (file)
@@ -29,7 +29,7 @@ class Tos extends BaseAdmin
 {
        public static function post(array $parameters = [])
        {
-               parent::post($parameters);
+               self::checkAdminAccess();
 
                if (empty($_POST['page_tos'])) {
                        return;
@@ -45,8 +45,6 @@ class Tos extends BaseAdmin
                DI::config()->set('system', 'tosprivstatement', $displayprivstatement);
                DI::config()->set('system', 'tostext', $tostext);
 
-               info(DI::l10n()->t('The Terms of Service settings have been updated.'));
-
                DI::baseUrl()->redirect('admin/tos');
        }