CDS Restrictions and Roles

This commit is contained in:
2026-07-29 09:06:41 +00:00
parent 022b4f034b
commit 88d709cb16
2 changed files with 20 additions and 1 deletions

View File

@@ -12,6 +12,23 @@
"start": "cds-serve", "start": "cds-serve",
"watch-incidents": "cds watch --open ns.incidents/index.html?sap-ui-xx-viewCache=false --livereload false" "watch-incidents": "cds watch --open ns.incidents/index.html?sap-ui-xx-viewCache=false --livereload false"
}, },
"cds": {
"requires": {
"[development]": {
"auth": {
"kind": "mocked",
"users": {
"alice": {
"roles": ["support"]
},
"bob": {
"roles": ["support"]
}
}
}
}
}
},
"private": true, "private": true,
"workspaces": [ "workspaces": [
"app/*" "app/*"

View File

@@ -11,6 +11,7 @@ service ProcessorService {
} }
annotate ProcessorService.Incidents with @odata.draft.enabled; annotate ProcessorService.Incidents with @odata.draft.enabled;
annotate ProcessorService with @(requires: 'support');
/** /**
* Service used by administrators to manage customers and incidents. * Service used by administrators to manage customers and incidents.
@@ -19,3 +20,4 @@ service AdminService {
entity Customers as projection on my.Customers; entity Customers as projection on my.Customers;
entity Incidents as projection on my.Incidents; entity Incidents as projection on my.Incidents;
} }
annotate AdminService with @(requires: 'admin');