fix: switch admin loa perms to hiring manager role

Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
Miguel Nogueira 2022-10-26 21:28:13 +01:00
parent 9750e2cfcd
commit 501399ee2e
No known key found for this signature in database
GPG Key ID: 3C6A7E29AF26D370

View File

@ -124,7 +124,7 @@ class PermissionSeeder extends Seeder
'applications.vote'
]);
$hiringManager->givePermissionTo('appointments.*', 'applications.*', 'admin.hiring.*');
$hiringManager->givePermissionTo('admin.viewAllAbsences', 'admin.manageAbsences', 'appointments.*', 'applications.*', 'admin.hiring.*');
$admin->givePermissionTo([
'appointments.*',
@ -134,8 +134,6 @@ class PermissionSeeder extends Seeder
'admin.notificationsettings.*',
'profiles.view.others',
'profiles.edit.others',
'admin.viewAllAbsences',
'admin.manageAbsences',
]);
}
}