-
Notifications
You must be signed in to change notification settings - Fork 15
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
CUR-3978 implement default UI and backend permissions for all default roles of all organizations #1316
CUR-3978 implement default UI and backend permissions for all default roles of all organizations #1316
Conversation
waleed-backend
commented
Sep 23, 2022
- 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.
…role of all organization
…iveLearningStudio-API into feature/CUR-3978-implement-default-ui-permissions
} | ||
} | ||
|
||
if (isset($this->uiModules[$permissionName]) && $this->uiModulePermissions[$permissionType][$this->uiModules[$permissionName]]) { |
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.
Move "$this->uiModules[$permissionName]" to variable.
Add "isset()" for $this->uiModulePermissions[$permissionType][$this->uiModules[$permissionName]]
} | ||
} | ||
// assign ui role permissions | ||
$roleType->uiModulePermissions()->sync($uiModulePermissionIds); |
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.
Use transaction in the seeder.
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.
Please do the requested changes.
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.
PR approved, please check.