diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-01 22:33:43 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-01 22:33:43 +0300 |
| commit | 6b33ed2dc614c51627d20c83df5310d776983555 (patch) | |
| tree | 9b45b8731425d06151e4aae69fa5fd1d77870b07 /web/css/theme.css | |
| parent | feafe31716cdbac304dbcd0bce6fe7b205747f0a (diff) | |
task 4: DRY permission checking by extracting checkSetPermission helper
Consolidates the duplicated user-admin, explicit permission, and
set.Permissions loop logic from verifyAccess, verifyModifyAccess,
and verifySetModifyAccess into a single checkSetPermission helper.
- checkSetPermission accepts a requiredRole; empty string means any role.
- verifyAccess delegates set-level permission check to helper.
- verifyModifyAccess delegates owner-only check to helper.
- verifySetModifyAccess delegates directly to helper.
All tests pass with -race -cover.
Diffstat (limited to 'web/css/theme.css')
0 files changed, 0 insertions, 0 deletions
