Skip to content

Commit

Permalink
feat(authorization): Add create restriction to application creation (#…
Browse files Browse the repository at this point in the history
…618)

* add create restriction to application creation

* remove TODO
  • Loading branch information
AbdulRahmanAlHamali authored and mergify[bot] committed Oct 25, 2019
1 parent 78a0ffb commit c8e96e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public class ApplicationsController {
return results
}

// TODO(ttomsu): Think through application creation permissions.
@PreAuthorize("@fiatPermissionEvaluator.canCreate('APPLICATION', app)")
@ApiOperation(value = "", notes = "Create an application")
@RequestMapping(method = RequestMethod.POST)
Application create(@RequestBody final Application app) {
Expand Down

0 comments on commit c8e96e1

Please sign in to comment.