Skip to content

Commit

Permalink
[COM-1101] - update to include check that user is allowed to see flag…
Browse files Browse the repository at this point in the history
…s through the api
  • Loading branch information
ajaypayne committed Mar 25, 2022
1 parent d3d2ac3 commit d379c28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Api/Controller/ListFlagsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ protected function data(ServerRequestInterface $request, Document $document)
$actor = $request->getAttribute('actor');

$actor->assertRegistered();
$actor->assertCan('viewFlags');

$actor->read_flags_at = time();
$actor->save();
Expand Down

0 comments on commit d379c28

Please sign in to comment.