Add alarms to tasks, admin role from DB

This commit is contained in:
2026-03-28 19:39:25 +05:00
parent a2f09de04d
commit 28ef21b2f4
6 changed files with 141 additions and 20 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ class AdminScreen extends ConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
final user = ref.watch(currentUserProvider);
final isAdmin = user?.isAdmin ?? false;
final isAdmin = user?.role == UserRole.admin;
return Scaffold(
appBar: AppBar(