add user status

This commit is contained in:
2016-04-08 21:48:53 +02:00
parent 859c898264
commit 1cbecb415b
6 changed files with 14 additions and 3 deletions

View File

@@ -33,6 +33,10 @@ class UserUpdate extends User {
],
[['role'], 'required'],
[['role'], 'string', 'max' => 20],
['status', 'default', 'value' => self::STATUS_ACTIVE],
['status', 'in', 'range' => [self::STATUS_ACTIVE, self::STATUS_DELETED]],
];
}
@@ -51,6 +55,7 @@ class UserUpdate extends User {
public function attributeLabels() {
return [
'status' => 'Státusz',
'email' => 'E-mail',
'username' => 'Felhasználónév',
'created_at' => 'Létrehozás dátuma',