instance based restriction in catalogservice
This commit is contained in:
@@ -11,3 +11,7 @@ service CatalogService {
|
|||||||
@insertonly entity Orders as projection on my.Orders;
|
@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' }
|
||||||
|
]);
|
||||||
Reference in New Issue
Block a user