-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate username #3
base: master
Are you sure you want to change the base?
Conversation
controllers/UserController.php
Outdated
@@ -26,7 +26,7 @@ public function behaviors() | |||
'rules' => [ | |||
[ | |||
'allow' => true, | |||
'roles' => [User::ROLE_MANAGER], | |||
'roles' => [User::ROLE_MANAGER, User::ROLE_ADMINISTRATOR], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@makhatadze ROLE_ADMINISTRATOR contains ROLE_MANAGER.
ROLE_MANAGER means access granted for ROLE_ADMINISTRATOR too.
models/search/BankHolidaySearch.php
Outdated
@@ -69,7 +69,7 @@ public function search($params) | |||
|
|||
// grid filtering conditions | |||
$query->andFilterWhere([ | |||
'id' => $this->id, | |||
'bank_holiday.id' => $this->id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@makhatadze It would be better to use {{Model}}::tableName() instead of hardcoded 'bank_holiday'.
$query->andFilterWhere([ | ||
'id' => $this->id, | ||
'up.id' => $this->id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@makhatadze It would be better to use {{Model}}::tableName() instead of hardcoded 'up'.
models/search/UserSearch.php
Outdated
if ($this->created_at) { | ||
|
||
$query->andFilterWhere([ | ||
'FROM_UNIXTIME(user.created_at, "%Y-%m-%d")' => $this->created_at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@makhatadze It would be better to use User::tableName() instead of hardcoded 'user'.
No description provided.