feat: add Poultry Farm Inspection module with navigation and logic

This commit is contained in:
2025-11-18 08:10:19 +03:30
parent 0669e22cfa
commit c4bc31029f
14 changed files with 1638 additions and 135 deletions

View File

@@ -122,6 +122,15 @@ class AuthLogic extends GetxController with GetTickerProviderStateMixin {
var tmpRoles = result?.role
?.where((element) => element == 'PoultryScience' || element == 'Steward')
.toList();
/*var tmpRoles = result?.role?.where((element) {
return element == 'PoultryScience' ||
element == 'Steward' ||
element == 'CityOperator' ||
element == 'CityJahad' ||
element.toLowerCase().contains("admin");
}).toList();*/
await tokenStorageService.saveRoles(_module, tmpRoles ?? []);
if (rememberMe.value) {
await tokenStorageService.saveUserPass(