-
Notifications
You must be signed in to change notification settings - Fork 704
feat: move /owner-manage left-nav from ASSET_OWNER to SU, add index c… #3416
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
Changes from all commits
d91e782
301f0d4
2ddcbb7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| -- ============================================================ | ||
| -- Move /owner-manage left-nav from ASSET_OWNER to SU | ||
| -- Migration Date: 2026-07-13 | ||
| -- ============================================================ | ||
| -- ASSET_OWNER no longer sees the asset-admin resource management page. | ||
| -- SU gains /owner-manage (id 1003) alongside existing / and /resource-manage. | ||
| -- ============================================================ | ||
|
|
||
| BEGIN; | ||
|
|
||
| -- Remove ASSET_OWNER access to /owner-manage | ||
| DELETE FROM nexent.role_permission_t | ||
| WHERE role_permission_id = 1505 | ||
| OR ( | ||
| user_role = 'ASSET_OWNER' | ||
| AND permission_category = 'VISIBILITY' | ||
|
Check failure on line 16 in deploy/sql/migrations/v2.3.0_0713_move_owner_manage_to_su.sql
|
||
| AND permission_type = 'LEFT_NAV_MENU' | ||
|
Check failure on line 17 in deploy/sql/migrations/v2.3.0_0713_move_owner_manage_to_su.sql
|
||
| AND permission_subtype = '/owner-manage' | ||
|
Check failure on line 18 in deploy/sql/migrations/v2.3.0_0713_move_owner_manage_to_su.sql
|
||
| ); | ||
|
|
||
| -- Grant SU access to /owner-manage (idempotent) | ||
| DELETE FROM nexent.role_permission_t | ||
| WHERE role_permission_id = 1003 | ||
| OR ( | ||
| user_role = 'SU' | ||
| AND permission_category = 'VISIBILITY' | ||
| AND permission_type = 'LEFT_NAV_MENU' | ||
| AND permission_subtype = '/owner-manage' | ||
| ); | ||
|
|
||
| INSERT INTO nexent.role_permission_t ( | ||
| role_permission_id, | ||
| user_role, | ||
| permission_category, | ||
| permission_type, | ||
| permission_subtype | ||
| ) VALUES ( | ||
| 1003, | ||
| 'SU', | ||
| 'VISIBILITY', | ||
| 'LEFT_NAV_MENU', | ||
| '/owner-manage' | ||
| ); | ||
|
|
||
| COMMIT; | ||
Uh oh!
There was an error while loading. Please reload this page.