feat(mobile-api): admin guard on /api/admin/** (admin token, session state, module grants)
Ported from babyboo: @AdminModule, AdminModuleAccess, AdminSessionGuard and the admin branch of AppAccessAspect. Adds the BO area, and services-auth findUserByToken now returns no user for a logged-out token. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
1 parent
72b724f468
commit
0a990cbcaf
16 files changed
+850
-8
No files matched your search
@@ -8,7 +8,7 @@ public class GeneralEnum {
|
||||
|
||||
@Getter
|
||||
public enum Area {
|
||||
A("ADMIN"), M("MEMBER"), P("PUBLIC"), B("STOCKIST"), AP("APPS");
|
||||
A("ADMIN"), M("MEMBER"), P("PUBLIC"), B("STOCKIST"), AP("APPS"), BO("BACKOFFICE_PORTAL");
|
||||
private final String name;
|
||||
|
||||
Area(String name) {
|
||||
|
||||
Reference in new issue
Block a user