#23 Fix Bug oAuth auto access
This commit is contained in:
parent
6283a205e6
commit
2bd9707b74
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue