#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();
|
$user = Auth::user();
|
||||||
$redirect = false;
|
$redirect = false;
|
||||||
if($user != null) {
|
if($user != null) {
|
||||||
|
$access = AppAccess::getOrCreate($user->id, $app->id);
|
||||||
if($app->auto_accept == true) {
|
if($app->auto_accept == true) {
|
||||||
$access->status = "allowed";
|
$access->status = "allowed";
|
||||||
$access->saveOrFail();
|
$access->saveOrFail();
|
||||||
}
|
}
|
||||||
$access = AppAccess::getOrCreate($user->id, $app->id);
|
|
||||||
if($access->status == "allowed") {
|
if($access->status == "allowed") {
|
||||||
$redirect = true;
|
$redirect = true;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue