Skip to content
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

Merged

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.

2 participants