CDS Restrictions and Roles
This commit is contained in:
19
package.json
19
package.json
@@ -12,6 +12,23 @@
|
||||
"start": "cds-serve",
|
||||
"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,
|
||||
"workspaces": [
|
||||
"app/*"
|
||||
@@ -19,4 +36,4 @@
|
||||
"sapux": [
|
||||
"app/incidents"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,7 @@ service ProcessorService {
|
||||
}
|
||||
|
||||
annotate ProcessorService.Incidents with @odata.draft.enabled;
|
||||
annotate ProcessorService with @(requires: 'support');
|
||||
|
||||
/**
|
||||
* Service used by administrators to manage customers and incidents.
|
||||
@@ -19,3 +20,4 @@ service AdminService {
|
||||
entity Customers as projection on my.Customers;
|
||||
entity Incidents as projection on my.Incidents;
|
||||
}
|
||||
annotate AdminService with @(requires: 'admin');
|
||||
|
||||
Reference in New Issue
Block a user