after last commit
This commit is contained in:
parent
e739df3811
commit
6ad6608324
@ -162,7 +162,7 @@ class CustomDrawer extends StatelessWidget {
|
||||
leading: const Icon(Icons.warning_amber),
|
||||
title: const Text("Gérer les rôles"),
|
||||
onTap: () async {
|
||||
bool hasPermission = await userController.hasAnyPermission(['update', 'delete']);
|
||||
bool hasPermission = await userController.hasAnyPermission(['update', 'delete','create']);
|
||||
if (hasPermission) {
|
||||
Get.to(const HandleUserRole());
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user