mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 03:01:21 +02:00
navPermissions in Layout.tsx gated three resources on the LEGACY *:read flag. Default Operators group is seeded with *_own only (and the migration map flips legacy → _own on existing groups), so non-admin users never held the legacy permission and the sidebar hid Archives / Queue / Files even though the underlying API accepted their requests. Reporter only spotted Files; same bug shape applied to Archives and Queue. Fix: navPermissions accepts Permission | Permission[]; the three affected resources list all three tiers. isHidden checks .some(hasPermission) for arrays. Permission type extended with the matching *_own / *_all variants — backend already shipped them, the TS type just didn't declare them.