Skip to content

Commit

Permalink
remove admin sync via group
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Sep 8, 2024
1 parent b56fcc3 commit 11fbb84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/Filament/Resources/UserResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public static function form(Form $form): Form
->columnSpanFull(),
Forms\Components\Toggle::make('is_reviewer')
->required(),
Forms\Components\Toggle::make('is_admin')
->required(),
]);
}

Expand Down
1 change: 0 additions & 1 deletion app/Http/Controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public function loginCallback()
'name' => $socialLiteUser->getName(),
'email' => $socialLiteUser->getEmail(),
'avatar' => $socialLiteUser->getAvatar(),
'is_admin' => in_array('N9OY0K8OJVXR1P7L', $socialLiteUser->user['groups'], true),
'attendee_id' => $regId,
]);

Expand Down

0 comments on commit 11fbb84

Please sign in to comment.