fix default role name
This commit is contained in:
parent
8475a8b838
commit
5dcc661cc1
|
@ -98,7 +98,7 @@ class AuthItem extends \yii\db\ActiveRecord {
|
|||
$ls = self::find()->andWhere(['type' => 1])->all();
|
||||
$re = [];
|
||||
foreach ($ls as $key => $value) {
|
||||
$re[$value->name] = Yii::t("app", $value->description);
|
||||
$re[$value->name] = $value->description ? $value->description : $value->name;
|
||||
}
|
||||
return $re;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user