Browse Source

after last commit

31052025_01
b.razafimandimbihery 6 months ago
parent
commit
6ad6608324
  1. 2
      lib/Components/appDrawer.dart

2
lib/Components/appDrawer.dart

@ -162,7 +162,7 @@ class CustomDrawer extends StatelessWidget {
leading: const Icon(Icons.warning_amber), leading: const Icon(Icons.warning_amber),
title: const Text("Gérer les rôles"), title: const Text("Gérer les rôles"),
onTap: () async { onTap: () async {
bool hasPermission = await userController.hasAnyPermission(['update', 'delete']); bool hasPermission = await userController.hasAnyPermission(['update', 'delete','create']);
if (hasPermission) { if (hasPermission) {
Get.to(const HandleUserRole()); Get.to(const HandleUserRole());
} else { } else {

Loading…
Cancel
Save