Skip to content

TIGER-335 batch 1: _isAdmin()→_isAllowed() in identity/matomo/schedule/backup/ally - #350

Merged
WebTigers merged 1 commit into
mainfrom
feat/tiger-335-batch1-admin-modules
Oct 21, 2026
Merged

WebTigers merged 1 commit into
mainfrom
feat/tiger-335-batch1-admin-modules

Conversation

@WebTigers

Copy link
Copy Markdown
Owner

First batch of the TIGER-335 per-module migration off the deprecated role comparers.

Five admin-only modules (each service granted to admin at the resource, so the dispatcher already gates every method to admin): the resource-level _isAdmin() in-method guards are converted to privilege-scoped _isAllowed('<method>').

  • identity (TIGER-356) — save
  • matomo (TIGER-355) — save
  • schedule (TIGER-351) — jobs, setSchedule, runNow
  • backup (TIGER-349) — run, remove, restore, saveSettings
  • ally (TIGER-350) — scan, scanModule, pages, scanAll

Behavior-preserving (a wildcard-privilege admin grant covers each named privilege); the guard stays as defense-in-depth for any in-process caller, now without a role comparer. No acl.ini changes needed. Tests green: 117 across the five modules.

The deprecated comparers are deleted in the final release (TIGER-358) once every module is migrated.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ASauLLscjqdsNqBNsx2Typ

…ule/backup/ally (v1.32.0)

Replace the deprecated resource-level _isAdmin() guards with privilege-scoped _isAllowed('<method>')
in five admin-only modules. Each service is granted to `admin` at the resource (wildcard privilege),
so the conversion is behavior-preserving; the in-method guard remains as defense-in-depth for any
in-process caller, now without a role comparer. No acl.ini changes needed (blanket admin covers all
method privileges). Tests green: 117 across the five modules.

Closes TIGER-349, TIGER-350, TIGER-351, TIGER-355, TIGER-356.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASauLLscjqdsNqBNsx2Typ
@WebTigers
WebTigers merged commit 6a7b13d into main Oct 21, 2026
14 checks passed
@WebTigers
WebTigers deleted the feat/tiger-335-batch1-admin-modules branch October 21, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant