]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/BaseAdmin.php
Prevent settings/userexport to be used by anonymous users
[friendica.git] / src / Module / BaseAdmin.php
index 67de97f8577f0978a8f38447f482c4f5abc1295b..90b246e432f0640cea9aa080207afbf456d2690b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -64,7 +64,7 @@ abstract class BaseAdmin extends BaseModule
                }
 
                if (!empty($_SESSION['submanage'])) {
-                       throw new HTTPException\ForbiddenException(DI::l10n()->t('Submanaged account can\'t access the administation pages. Please log back in as the main account.'));
+                       throw new HTTPException\ForbiddenException(DI::l10n()->t('Submanaged account can\'t access the administration pages. Please log back in as the main account.'));
                }
        }
 
@@ -114,6 +114,7 @@ abstract class BaseAdmin extends BaseModule
                                'webfinger'    => ['webfinger'         , DI::l10n()->t('check webfinger')         , 'webfinger'],
                                'itemsource'   => ['admin/item/source' , DI::l10n()->t('Item Source')             , 'itemsource'],
                                'babel'        => ['babel'             , DI::l10n()->t('Babel')                   , 'babel'],
+                               'debug/ap'     => ['debug/ap'          , DI::l10n()->t('ActivityPub Conversion')  , 'debug/ap'],
                        ]],
                ];