An admin with no company who is not a super admin now gets 403 COMPANY_REQUIRED on every company-scoped request instead of seeing all companies. The module check and the email detail treat only a real super admin (no company and role 1) as super; a company user still holding role 1 gets only what their other roles grant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
657 B
657 B
1. Fail closed
- 1.1
AdminCompanyScope.scopeandrequireCompanyForCreaterefuse (403COMPANY_REQUIRED) an admin with no company who is not a super admin- Depends on: none
- Scope:
solvway-mobile-api/src/**/useraccess/AdminCompanyScope*.java - Verify:
mvn -T 1C -q -pl solvway-mobile-api verify
- 1.2
AppAccessAspectskips the module check only forAdminCompanyScope.isSuper;AdminEmailServiceuses the same test- Depends on: 1.1
- Scope:
solvway-mobile-api/src/**/useraccess/AppAccessAspect*.java,solvway-mobile-api/src/**/service/AdminEmailService*.java - Verify:
mvn -T 1C -q -pl solvway-mobile-api verify