mirror of
https://github.com/humhub/humhub.git
synced 2025-03-03 14:49:31 +01:00
Merge pull request #1627 from buddha87/v1.1-dev
Exclude Admin Group from default authentication group setting.
This commit is contained in:
commit
6d40afa551
@ -162,7 +162,9 @@ class SettingController extends Controller
|
|||||||
$groups = array();
|
$groups = array();
|
||||||
$groups[''] = Yii::t('AdminModule.controllers_SettingController', 'None - shows dropdown in user registration.');
|
$groups[''] = Yii::t('AdminModule.controllers_SettingController', 'None - shows dropdown in user registration.');
|
||||||
foreach (\humhub\modules\user\models\Group::find()->all() as $group) {
|
foreach (\humhub\modules\user\models\Group::find()->all() as $group) {
|
||||||
$groups[$group->id] = $group->name;
|
if(!$group->is_admin_group) {
|
||||||
|
$groups[$group->id] = $group->name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->render('authentication', array('model' => $form, 'groups' => $groups));
|
return $this->render('authentication', array('model' => $form, 'groups' => $groups));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user