Skip to content

feat: seed an ACL rule so Administrator reaches the dashboard - #43

Merged
tyrsson merged 1 commit into
1.0.xfrom
feat/dashboard-rule-seed
Oct 1, 2026
Merged

tyrsson merged 1 commit into
1.0.xfrom
feat/dashboard-rule-seed

Conversation

@tyrsson

@tyrsson tyrsson commented Oct 1, 2026

Copy link
Copy Markdown
Member

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have added tests for my changes.
  • All new and existing tests passed.
  • This pull request targets the correct branch. (1.0.x)

Description

Nothing seeded an ACL rule for admin.dashboard.read (webware-acl seeds its own routes for Developer, usermanager seeds its own for Administrator), so the dashboard route denied every role and its Dashboard navigation link was hidden from everyone.

  • Webware\Admin\Acl\RuleSeeds allows Administrator the dashboard route; Developer reaches it through role inheritance. The resource id follows the application admin name ({adminName}.dashboard.read).
  • Registered under Webware\Core\AclInterface rule_seed_providers and as an invokable.
  • Raises the webware/webware-core floor to ^1.0.0-alpha.8, the first release that ships RuleSeed.

Existing databases need acl:seed run once to pick the rule up.

How has this been tested?

mago format --check, lint, analyze, guard exit 0. composer test: 27 unit tests, composer test-integration: 11, composer mutation-test: 69 mutants, all killed. New tests assert the rule, the admin-name handling, and that every seeded resource id is a route the RouteProvider registers.

No package seeded a rule for admin.dashboard.read, so the route denied every role and the Dashboard navigation link was hidden from everyone. Adds Acl\RuleSeeds, which allows Administrator the dashboard route (Developer inherits it), registers it under the webware-core AclInterface rule_seed_providers and as an invokable, and raises the webware-core floor to 1.0.0-alpha.8, the first release that ships RuleSeed.

Signed-off-by: Joey Smith <jsmith@webinertia.net>
@codecov

codecov Bot commented Oct 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tyrsson
tyrsson merged commit dc50df9 into 1.0.x Oct 1, 2026
12 checks passed
@tyrsson
tyrsson deleted the feat/dashboard-rule-seed branch October 1, 2026 11:11
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