A free open source IT asset/license management system
Added gate to check that the user is allowed to view API keys
snipe512dbfee7acf
diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.phpindex ef6c00a54a..e55dbe0709 100755--- a/app/Http/Controllers/ProfileController.php+++ b/app/Http/Controllers/ProfileController.php@@ -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');}