mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 02:32:57 +00:00
hot fix #1
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
-- Remove unwanted admin navigation sections
|
||||
-- This SQL removes navigation items with the specified labels from the admin navigation
|
||||
|
||||
DELETE FROM navigation_items
|
||||
WHERE label IN ('Zařízení', 'Správa zařízení', 'Vybavení', 'Údržba')
|
||||
AND requires_admin = true;
|
||||
|
||||
-- Also remove any child items that might be orphaned
|
||||
DELETE FROM navigation_items
|
||||
WHERE parent_id IN (
|
||||
SELECT id FROM (
|
||||
SELECT id FROM navigation_items
|
||||
WHERE label IN ('Zařízení', 'Správa zařízení', 'Vybavení', 'Údržba')
|
||||
AND requires_admin = true
|
||||
) AS parent_ids
|
||||
);
|
||||
|
||||
-- Verify removal
|
||||
SELECT label, page_type, requires_admin FROM navigation_items
|
||||
WHERE label IN ('Zařízení', 'Správa zařízení', 'Vybavení', 'Údržba');
|
||||
Reference in New Issue
Block a user