Skip to content

Conversation

@waleed-backend
Copy link
Contributor

  • Assigned default UI permissions for default roles(admin, course creator, member and self-registered)
  • Assigned default backend permissions for default roles(admin, course creator, member and self-registered)
  • Assigned different UI and backend permissions for different environments according to the provided sheet.

}
}

if (isset($this->uiModules[$permissionName]) && $this->uiModulePermissions[$permissionType][$this->uiModules[$permissionName]]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move "$this->uiModules[$permissionName]" to variable.
Add "isset()" for $this->uiModulePermissions[$permissionType][$this->uiModules[$permissionName]]

}
}
// assign ui role permissions
$roleType->uiModulePermissions()->sync($uiModulePermissionIds);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use transaction in the seeder.

Copy link
Contributor

@fahad-curriki fahad-curriki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do the requested changes.

Copy link
Contributor

@fahad-curriki fahad-curriki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR approved, please check.

@fahad-curriki fahad-curriki merged commit cae5ba9 into develop Sep 23, 2022
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.

3 participants