mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Apply personal API token fix to master
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
181dc5127f
commit
984db1ef44
|
@ -113,6 +113,12 @@ class ProfileController extends Controller
|
||||||
* @return View
|
* @return View
|
||||||
*/
|
*/
|
||||||
public function api() {
|
public function api() {
|
||||||
|
|
||||||
|
// Make sure the self.api permission has been granted
|
||||||
|
if (!Gate::allows('self.api')) {
|
||||||
|
abort(403);
|
||||||
|
}
|
||||||
|
|
||||||
return view('account/api');
|
return view('account/api');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue