1
0
Fork 0
mirror of synced 2024-07-01 04:30:59 +12:00

Fix missing scope for push target create/update

This commit is contained in:
Jake Barnby 2024-01-19 02:04:54 +13:00
parent a92d526125
commit 7b9bee9a2a
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -1746,7 +1746,7 @@ App::post('/v1/account/jwt')
App::post('/v1/account/targets/push')
->desc('Create Account\'s push target')
->groups(['api', 'account'])
->label('error', __DIR__ . '/../../views/general/error.phtml')
->label('scope', 'account')
->label('audits.event', 'target.create')
->label('audits.resource', 'target/response.$id')
->label('event', 'users.[userId].targets.[targetId].create')
@ -3228,7 +3228,7 @@ App::put('/v1/account/verification/phone')
App::put('/v1/account/targets/:targetId/push')
->desc('Update Account\'s push target')
->groups(['api', 'account'])
->label('error', __DIR__ . '/../../views/general/error.phtml')
->label('scope', 'account')
->label('audits.event', 'target.update')
->label('audits.resource', 'target/response.$id')
->label('event', 'users.[userId].targets.[targetId].update')