Merge pull request #10504 from snipe/fixes/auth_controls_on_api_key_creation

Fixes auth controls on api key creation
This commit is contained in:
snipe 2022-01-13 01:36:52 -08:00 committed by GitHub
commit 0e5ef53c35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,6 +113,12 @@ class ProfileController extends Controller
*/
public function api()
{
// Make sure the self.api permission has been granted
if (!Gate::allows('self.api')) {
abort(403);
}
return view('account/api');
}