CDS Restrictions and Roles
This commit is contained in:
17
package.json
17
package.json
@@ -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/*"
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user