Some bad restrict stuff

This commit is contained in:
Christian Georgi
2022-05-31 16:23:28 +02:00
parent 04411e35a7
commit af605bf685

View File

@@ -26,10 +26,10 @@ service ReviewsService {
// Access control restrictions
annotate ReviewsService.Reviews with @restrict:[
{ grant:'READ', to:'any' }, // everybody can read reviews
{ grant:'GET', to:'any' }, // everybody can read reviews
{ grant:'CREATE', to:'authenticated-user' }, // users must login to add reviews
{ grant:'UPDATE', to:'authenticated-user', where:'reviewer=$user' },
{ grant:'DELETE', to:'admin' },
{ grant:'DELET', to:'admin' },
];
annotate ReviewsService with @restrict:[