refactor: apply review suggestions
Signed-off-by: Camila Belo <camilaibs@gmail.com> Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -82,10 +82,7 @@ router.put('/todos', async (req, res) => {
|
||||
const decision = (
|
||||
await permissions.authorize(
|
||||
[{ permission: todoListUpdatePermission, resourceRef: req.body.id }],
|
||||
await auth.getPluginRequestToken({
|
||||
onBehalfOf: credentials,
|
||||
targetPluginId: 'permission',
|
||||
}),
|
||||
{ credentials },
|
||||
)
|
||||
)[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user