/** * @inheritdoc */ public function beforeAction($action) { if (!Yii::$app->user->getIdentity()->canApproveUsers()) { throw new ForbiddenHttpException(Yii::t('error', 'You are not allowed to perform this action.')); } if (!Yii::$app->user->isAdmin()) { $this->subLayout = "@humhub/modules/admin/views/approval/_layoutNoAdmin"; } return parent::beforeAction($action); }
public function init() { $this->appendPageTitle(Yii::t('AdminModule.base', 'Users')); $this->subLayout = '@admin/views/layouts/user'; return parent::init(); }
public function init() { $this->appendPageTitle(Yii::t('AdminModule.base', 'Modules')); return parent::init(); }
/** * @inheritdoc */ public function init() { $this->setActionTitles(['basic' => Yii::t('AdminModule.base', 'Basic'), 'caching' => Yii::t('AdminModule.base', 'Caching'), 'statistic' => Yii::t('AdminModule.base', 'Statistics'), 'mailing' => Yii::t('AdminModule.base', 'Mailing'), 'mailing-server' => Yii::t('AdminModule.base', 'Mailing'), 'design' => Yii::t('AdminModule.base', 'Design'), 'security' => Yii::t('AdminModule.base', 'Security'), 'file' => Yii::t('AdminModule.base', 'Files'), 'cronjobs' => Yii::t('AdminModule.base', 'Cronjobs'), 'proxy' => Yii::t('AdminModule.base', 'Proxy'), 'oembed' => Yii::t('AdminModule.base', 'OEmbed providers'), 'oembed-edit' => Yii::t('AdminModule.base', 'OEmbed providers'), 'self-test' => Yii::t('AdminModule.base', 'Self test')]); $this->subLayout = '@admin/views/layouts/setting'; return parent::init(); }
/** * @inheritdoc */ public function init() { $this->setActionTitles(['basic' => Yii::t('AdminModule.base', 'Basic'), 'authentication' => Yii::t('AdminModule.base', 'Authentication'), 'authentication-ldap' => Yii::t('AdminModule.base', 'Authentication')]); $this->subLayout = '@admin/views/layouts/user'; return parent::init(); }
public function init() { $this->appendPageTitle(Yii::t('AdminModule.base', 'Logging')); $this->subLayout = '@admin/views/layouts/information'; return parent::init(); }
public function init() { $this->subLayout = '@admin/views/layouts/information'; return parent::init(); }