-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FR-240] fix: show vfolder types in folder create modal based on user…
… permission (#2992) <!-- Please precisely, concisely, and concretely describe what this PR changes, the rationale behind codes, and how it affects the users and other developers. --> ### This PR resolves [#FR-240](https://lablup.atlassian.net/browse/FR-240?atlOrigin=eyJpIjoiYTA1Mjk0NjJiNjFiNGI0MjhjYzJiNjEwZWI2MDlmZDYiLCJwIjoiaiJ9) issue Apply rules based on the `current user role` and `list_allowed_types` to the vfolder type selector in `FolderCreateModal`. **Changes:** - Only `super admin` or `admin` can create project type vfolder. - vfolder type in folder create modal is based on `list_allowed_types` comes from server - Show `max_vfolder_count` in `Project Resource Policy` if user role is only `Super Admin` or `Admin`. **Checklist:** (if applicable) - [ ] Mention to the original issue - [ ] Documentation - [ ] Minium required manager version - [ ] Specific setting for review (eg., KB link, endpoint or how to setup) - [ ] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after
- Loading branch information
1 parent
16b95bf
commit 1023999
Showing
3 changed files
with
54 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters