user card level required
This commit is contained in:
parent
0d113a60fd
commit
e61c45791e
@ -94,7 +94,7 @@ class UserCard extends \yii\db\ActiveRecord
|
|||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[['fio', 'status', 'gender', 'email'], 'required'],
|
[['fio', 'status', 'gender', 'email', 'level'], 'required'],
|
||||||
[['gender', 'status', 'position_id', 'id_user', 'level'], 'integer'],
|
[['gender', 'status', 'position_id', 'id_user', 'level'], 'integer'],
|
||||||
[['dob', 'created_at', 'updated_at', 'deleted_at', 'vc_text'], 'safe'],
|
[['dob', 'created_at', 'updated_at', 'deleted_at', 'vc_text'], 'safe'],
|
||||||
[['fio', 'passport', 'photo', 'email', 'resume', 'city', 'link_vk', 'link_telegram'], 'string', 'max' => 255],
|
[['fio', 'passport', 'photo', 'email', 'resume', 'city', 'link_vk', 'link_telegram'], 'string', 'max' => 255],
|
||||||
|
Loading…
Reference in New Issue
Block a user