instance based restriction in catalogservice

This commit is contained in:
Matthias Bühl
2020-02-03 09:26:33 +01:00
parent 3c094c201b
commit 73cf655715

View File

@@ -11,3 +11,7 @@ service CatalogService {
@insertonly entity Orders as projection on my.Orders;
}
// Example for an instance restriction
annotate CatalogService.Orders with @(restrict: [
{ grant: 'READ', where: 'currency_code = $user.currency' }
]);