forked from determined-ai/determined
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added RBAC for DeleteModel/Version [DET-9048] (determined-ai#755)
- Loading branch information
1 parent
4c8f593
commit 6bbb7ee
Showing
8 changed files
with
47 additions
and
23 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
7 changes: 7 additions & 0 deletions
7
master/static/migrations/20230404144709_add-rbac-delete-model.tx.down.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
DELETE FROM permissions_assignments WHERE permission_id IN ( | ||
7004 | ||
); | ||
|
||
DELETE FROM permissions WHERE id IN ( | ||
7004 | ||
); |
9 changes: 9 additions & 0 deletions
9
master/static/migrations/20230404144709_add-rbac-delete-model.tx.up.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
INSERT INTO permissions ( | ||
id, name, global_only | ||
) VALUES | ||
(7004, 'delete model registry', false); | ||
-- ClusterAdmin, WorkspaceAdmin, Editor roles | ||
INSERT INTO permission_assignments (permission_id, role_id) VALUES | ||
(7004, 1), | ||
(7004, 2), | ||
(7004, 5); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.