Added programmer role and fixed snackbar not showing
This commit is contained in:
@@ -26,7 +26,8 @@ class WorkforceScreen extends ConsumerWidget {
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final profileAsync = ref.watch(currentProfileProvider);
|
||||
final role = profileAsync.valueOrNull?.role ?? 'standard';
|
||||
final isAdmin = role == 'admin' || role == 'dispatcher';
|
||||
final isAdmin =
|
||||
role == 'admin' || role == 'programmer' || role == 'dispatcher';
|
||||
|
||||
return ResponsiveBody(
|
||||
child: LayoutBuilder(
|
||||
@@ -1486,6 +1487,7 @@ class _ScheduleGeneratorPanelState
|
||||
(profile) =>
|
||||
profile.role == 'it_staff' ||
|
||||
profile.role == 'admin' ||
|
||||
profile.role == 'programmer' ||
|
||||
profile.role == 'dispatcher',
|
||||
)
|
||||
.toList();
|
||||
|
||||
Reference in New Issue
Block a user