File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -30,27 +30,27 @@ public function handleProviderCallback(Request $request): HttpRedirectResponse
30
30
}
31
31
32
32
$ user = Socialite::driver ('ikoncept ' )->user ();
33
- $ has_access = false ;
33
+ $ has_access = true ;
34
34
$ app_redirect = config ('services.ikoncept.redirect ' );
35
- $ sites = $ user ->user ['sites ' ];
35
+ // $sites = $user->user['sites'];
36
36
37
- if (in_array ($ app_redirect , $ sites )) {
38
- $ has_access = true ;
39
- }
37
+ // if (in_array($app_redirect, $sites)) {
38
+ // $has_access = true;
39
+ // }
40
40
41
- if (in_array ('* ' , $ sites )) {
42
- $ has_access = true ;
43
- }
41
+ // if (in_array('*', $sites)) {
42
+ // $has_access = true;
43
+ // }
44
44
45
- // Banned from everything
46
- if (in_array ('! ' , $ sites )) {
47
- $ has_access = false ;
48
- }
45
+ // // Banned from everything
46
+ // if (in_array('!', $sites)) {
47
+ // $has_access = false;
48
+ // }
49
49
50
- if (! $ has_access ) {
51
- return redirect ()->route ('login ' )
52
- ->with ('permissionError ' , 'Du har inte behörighet till denna applikationen ' );
53
- }
50
+ // if (! $has_access) {
51
+ // return redirect()->route('login')
52
+ // ->with('permissionError', 'Du har inte behörighet till denna applikationen');
53
+ // }
54
54
55
55
if (auth ()->guest ()) {
56
56
$ userModel = config ('ikoncept-oauth.user_model ' );
You can’t perform that action at this time.
0 commit comments