Apply personal API token fix to master

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-01-13 01:39:56 -08:00
parent 181dc5127f
commit 984db1ef44

View file

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