XSUAA Config 1

This commit is contained in:
Matthias Bühl
2020-01-30 17:32:23 +01:00
parent 6d0194acc0
commit e0e330c43a
5 changed files with 63 additions and 3 deletions

View File

@@ -14,3 +14,7 @@ annotate AdminService.Orders with @odata.draft.enabled;
extend service AdminService with {
entity OrderItems as select from my.OrderItems;
}
// Restrict access to orders to users with role "admin"
annotate AdminService.Orders with @(restrict: [
{ grant: 'READ', to: 'admin' }
]);