-
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.
EDX-2382: added EDX_SCHOOL_VIEW and EDX_DISTRICT_VIEW permission.
- Loading branch information
1 parent
f67c10c
commit 3273ee4
Showing
1 changed file
with
11 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
INSERT INTO EDX_PERMISSION (EDX_PERMISSION_CODE, LABEL, DESCRIPTION, CREATE_USER, UPDATE_USER) | ||
VALUES ('EDX_SCHOOL_VIEW', 'EDX School View', 'Permission to view school details and contacts.', 'IDIR/KLAUR', 'IDIR/KLAUR'); | ||
|
||
INSERT INTO EDX_PERMISSION (EDX_PERMISSION_CODE, LABEL, DESCRIPTION, CREATE_USER, UPDATE_USER) | ||
VALUES ('EDX_DISTRICT_VIEW', 'EDX District View', 'Permission to view district details and contacts.', 'IDIR/KLAUR', 'IDIR/KLAUR'); | ||
|
||
INSERT INTO EDX_ROLE_PERMISSION (EDX_ROLE_PERMISSION_ID, EDX_ROLE_CODE, EDX_PERMISSION_CODE, CREATE_USER, UPDATE_USER) | ||
SELECT gen_random_uuid(), edx_role_code, 'EDX_SCHOOL_VIEW', 'IDIR/KLAUR', 'IDIR/KLAUR' FROM EDX_ROLE; | ||
|
||
INSERT INTO EDX_ROLE_PERMISSION (EDX_ROLE_PERMISSION_ID, EDX_ROLE_CODE, EDX_PERMISSION_CODE, CREATE_USER, UPDATE_USER) | ||
SELECT gen_random_uuid(), edx_role_code, 'EDX_DISTRICT_VIEW', 'IDIR/KLAUR', 'IDIR/KLAUR' FROM EDX_ROLE WHERE IS_DISTRICT_ROLE=1; |