fix(settings): gate integration tabs by integration permissions

Prevent unauthorized users from seeing integrations they cannot use and keep settings routing consistent with API authorization behavior. Add hardcover_sync and enforce it server-side so tab visibility and endpoint access stay aligned.
This commit is contained in:
neon
2026-05-26 19:52:32 +00:00
parent 78b99d0b78
commit 3a72ece26d
10 changed files with 155 additions and 128 deletions
@@ -421,6 +421,11 @@ describe('Authorization matrix (e2e)', () => {
path: '/koreader/credentials',
token: 'allPerms',
},
[Permission.HardcoverSync]: {
method: 'GET',
path: '/hardcover/settings',
token: 'allPerms',
},
[Permission.DemoRestricted]: {
method: 'GET',
path: '/notifications',