mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 04:23:59 +00:00
add new admin user for cief employees, and added temporary redirect to forwarder dashboard for admin and super admin users
This commit is contained in:
@@ -11,8 +11,8 @@ class AuthenticationRedirect
|
||||
public function url(){
|
||||
$userRole = (int) Auth()->user()->role_id;
|
||||
|
||||
if($userRole === Roles::ADMIN){
|
||||
return route('admin.dashboard');
|
||||
if($userRole === Roles::ADMIN || $userRole === Roles::SUPER_ADMIN){
|
||||
return route('dashboard.forwarder');
|
||||
}
|
||||
|
||||
return route('dashboard.importer', ['id' => Auth()->user()->employers->first()->company->id]);
|
||||
|
||||
@@ -24,6 +24,15 @@ class UsersTableSeeder extends Seeder
|
||||
'role_id' => Roles::SUPER_ADMIN,
|
||||
'created_at' => \Carbon\Carbon::now(),
|
||||
'updated_at' => \Carbon\Carbon::now()
|
||||
],
|
||||
[
|
||||
'name' => 'CIEF Worldwide',
|
||||
'email' => 'admin@cief-malaysia.com',
|
||||
'password' => Hash::make('123456abcabc'),
|
||||
'email_verified_at' => \Carbon\Carbon::now(),
|
||||
'role_id' => Roles::ADMIN,
|
||||
'created_at' => \Carbon\Carbon::now(),
|
||||
'updated_at' => \Carbon\Carbon::now()
|
||||
]
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user