From 43567bcf0e6138b83fa35d69c3182ae3e25a77eb Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 10 Oct 2019 04:17:37 -0400 Subject: [PATCH] Add documentation comments to Module\Settings\Delegation --- src/Module/Settings/Delegation.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Module/Settings/Delegation.php b/src/Module/Settings/Delegation.php index 247d16de03..f7edc72c94 100644 --- a/src/Module/Settings/Delegation.php +++ b/src/Module/Settings/Delegation.php @@ -15,6 +15,9 @@ use Friendica\Module\BaseSettingsModule; use Friendica\Network\HTTPException; use Friendica\Util\Strings; +/** + * Account delegation settings module + */ class Delegation extends BaseSettingsModule { public static function post() @@ -54,8 +57,10 @@ class Delegation extends BaseSettingsModule /** @var Arguments $args */ $args = self::getClass(Arguments::class); + // @TODO Replace with router-provided arguments $action = $args->get(2); $user_id = $args->get(3); + if ($action === 'add' && $user_id) { if (Session::get('submanage')) { notice(L10n::t('Delegated administrators can view but not change delegation permissions.')); -- 2.39.5