Apply personal API token fix to master
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
181dc5127f
commit
984db1ef44
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue