chore: update app version to 1.3.36+32, change build mode to release, and enhance user role handling in chicken feature with new routes and DI setup

This commit is contained in:
2025-12-13 16:30:02 +03:30
parent 0d47710e81
commit afbd72404d
121 changed files with 15161 additions and 16 deletions

View File

@@ -135,7 +135,18 @@ class AuthLogic extends GetxController with GetTickerProviderStateMixin {
result?.accessToken ?? '',
);
var tmpRoles = result?.role?.where((element) {
final allowedRoles = {'poultryscience', 'steward', 'killhouse'};
final allowedRoles = {
'poultryscience',
'steward',
'killhouse',
'provinceinspector',
'cityjahad',
'jahad',
'vetfarm',
'provincesupervisor',
'superadmin',
};
final lowerElement = element.toString().toLowerCase().trim();
return allowedRoles.contains(lowerElement);
}).toList();