Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #10504 from snipe/fixes/auth_controls_on_api_key_c…
Browse files Browse the repository at this point in the history
…reation

Fixes auth controls on api key creation
  • Loading branch information
snipe committed Jan 13, 2022
2 parents eb8f23a + 512dbfe commit 0e5ef53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/Http/Controllers/ProfileController.php
Expand Up @@ -113,6 +113,12 @@ public function postIndex(ImageUploadRequest $request)
*/
public function api()
{

// Make sure the self.api permission has been granted
if (!Gate::allows('self.api')) {
abort(403);
}

return view('account/api');
}

Expand Down

0 comments on commit 0e5ef53

Please sign in to comment.