Add documentation comments to Module\Settings\Delegation
This commit is contained in:
parent
3cd916d7aa
commit
43567bcf0e
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,9 @@ use Friendica\Module\BaseSettingsModule;
|
||||||
use Friendica\Network\HTTPException;
|
use Friendica\Network\HTTPException;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Account delegation settings module
|
||||||
|
*/
|
||||||
class Delegation extends BaseSettingsModule
|
class Delegation extends BaseSettingsModule
|
||||||
{
|
{
|
||||||
public static function post()
|
public static function post()
|
||||||
|
@ -54,8 +57,10 @@ class Delegation extends BaseSettingsModule
|
||||||
/** @var Arguments $args */
|
/** @var Arguments $args */
|
||||||
$args = self::getClass(Arguments::class);
|
$args = self::getClass(Arguments::class);
|
||||||
|
|
||||||
|
// @TODO Replace with router-provided arguments
|
||||||
$action = $args->get(2);
|
$action = $args->get(2);
|
||||||
$user_id = $args->get(3);
|
$user_id = $args->get(3);
|
||||||
|
|
||||||
if ($action === 'add' && $user_id) {
|
if ($action === 'add' && $user_id) {
|
||||||
if (Session::get('submanage')) {
|
if (Session::get('submanage')) {
|
||||||
notice(L10n::t('Delegated administrators can view but not change delegation permissions.'));
|
notice(L10n::t('Delegated administrators can view but not change delegation permissions.'));
|
||||||
|
|
Loading…
Reference in a new issue