Skip to content
Permalink
Browse files
Merge pull request #10504 from snipe/fixes/auth_controls_on_api_key_c…
…reation

Fixes auth controls on api key creation
  • Loading branch information
snipe committed Jan 13, 2022
2 parents eb8f23a + 512dbfe commit 0e5ef53c352754de2778ffa20c85da15fd6f7ae0
Showing with 6 additions and 0 deletions.
  1. +6 −0 app/Http/Controllers/ProfileController.php
@@ -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');
}

0 comments on commit 0e5ef53

Please sign in to comment.