build: refresh release artifacts after upload limits and survey access
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
5593cef462
commit
41399a33bb
@@ -0,0 +1,19 @@
|
||||
-- Product design survey visible to EVERY admin user, whatever their user type.
|
||||
--
|
||||
-- Before this, the survey screen (nav item, route guard, in-view check and the
|
||||
-- API's @RequirePermission('product.survey')) only appeared for admins whose
|
||||
-- user type had been granted `product.survey` — in practice the super admin.
|
||||
--
|
||||
-- Granting both rids to every existing user type fixes that:
|
||||
-- `product` - the «محصولات» menu group itself (children are still
|
||||
-- gated by their own rids, so nothing else new appears)
|
||||
-- `product.survey` - the «نظرسنجی طرح» item and its API endpoints
|
||||
--
|
||||
-- Idempotent: re-running adds nothing. User types created later are granted
|
||||
-- through the normal permission screen, and the seed does the same for fresh
|
||||
-- databases.
|
||||
INSERT INTO "permission" ("rid", "userTypeId")
|
||||
SELECT r.rid, ut.id
|
||||
FROM (VALUES ('product'), ('product.survey')) AS r(rid)
|
||||
CROSS JOIN "user_type" AS ut
|
||||
ON CONFLICT ("rid", "userTypeId") DO NOTHING;
|
||||
Reference in New Issue
Block a user