adding summary

This commit is contained in:
Chris Smith
2025-02-20 17:54:15 +01:00
parent c9533688ba
commit 02a0243acb
8 changed files with 129 additions and 34 deletions

View File

@@ -92,17 +92,7 @@ class User extends ActiveRecord implements IdentityInterface
['status', 'default', 'value' => self::STATUS_ACTIVE],
[['email'], 'email'],
[['email'], 'unique'],
[['sales_agent_id', 'created_at', 'updated_at'], 'integer'],
[
'sales_agent_id',
'required',
'when' => function ($model) {
return $model->role === 'sales-agent';
},
'whenClient' => "function (attribute, value) {
return $('#role').val() == 'sales-agent';
}"
],
[['created_at', 'updated_at'], 'integer'],
[
'status',
'in',