#23 Fix Bug oAuth auto access

This commit is contained in:
Kekskurse 2019-05-02 11:25:38 +02:00
parent 6283a205e6
commit 2bd9707b74

View file

@ -31,11 +31,11 @@ class oAuthController extends Controller
$user = Auth::user();
$redirect = false;
if($user != null) {
$access = AppAccess::getOrCreate($user->id, $app->id);
if($app->auto_accept == true) {
$access->status = "allowed";
$access->saveOrFail();
}
$access = AppAccess::getOrCreate($user->id, $app->id);
if($access->status == "allowed") {
$redirect = true;
}