Skip to content

Comments

Generate username#3

Open
vito-makhatadze wants to merge 27 commits intomasterfrom
generate-username
Open

Generate username#3
vito-makhatadze wants to merge 27 commits intomasterfrom
generate-username

Conversation

@vito-makhatadze
Copy link

No description provided.

[
'allow' => true,
'roles' => [User::ROLE_MANAGER],
'roles' => [User::ROLE_MANAGER, User::ROLE_ADMINISTRATOR],
Copy link
Collaborator

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.

// grid filtering conditions
$query->andFilterWhere([
'id' => $this->id,
'bank_holiday.id' => $this->id,
Copy link
Collaborator

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,
Copy link
Collaborator

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'.

if ($this->created_at) {

$query->andFilterWhere([
'FROM_UNIXTIME(user.created_at, "%Y-%m-%d")' => $this->created_at
Copy link
Collaborator

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'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants