Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Delete all sec_role_permission entries tied to permission 'cohortdefinition:%:generate:%:get'.
-- This will give us a clean slate to start assigning this permission to only the "teamproject" roles:
-- TODO - note that this assumes the whole system is running in "teamproject" mode... i.e. it is not configurable now.
DELETE from ${ohdsiSchema}.sec_role_permission where sec_role_permission.permission_id in
(
SELECT ${ohdsiSchema}.sec_permission.id
FROM ${ohdsiSchema}.sec_permission
where
sec_permission.value like 'cohortdefinition:%:generate:%:get'
);
Loading