Added programmer role and fixed snackbar not showing
This commit is contained in:
@@ -156,7 +156,8 @@ class ProfileController {
|
||||
final isAdminProvider = Provider<bool>((ref) {
|
||||
final profileAsync = ref.watch(currentProfileProvider);
|
||||
return profileAsync.maybeWhen(
|
||||
data: (profile) => profile?.role == 'admin',
|
||||
data: (profile) =>
|
||||
profile?.role == 'admin' || profile?.role == 'programmer',
|
||||
orElse: () => false,
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user