|
|
|
@ -319,7 +319,6 @@ class _FamilyCardsState extends State<FamilyCards> {
|
|
|
|
final profile = widget.profileViewList![index];
|
|
|
|
final profile = widget.profileViewList![index];
|
|
|
|
final isActive = (profile.responseId == appState.getAuthenticatedUser()?.patientId);
|
|
|
|
final isActive = (profile.responseId == appState.getAuthenticatedUser()?.patientId);
|
|
|
|
final isParentUser = appState.getAuthenticatedUser()?.isParentUser ?? false;
|
|
|
|
final isParentUser = appState.getAuthenticatedUser()?.isParentUser ?? false;
|
|
|
|
print(jsonEncode(appState.getUserSwitchPayloads));
|
|
|
|
|
|
|
|
final isSuperUser = appState.getUserSwitchPayloads;
|
|
|
|
final isSuperUser = appState.getUserSwitchPayloads;
|
|
|
|
// TODO: canSwitch functionality is currently disabled - set to true to allow all switches
|
|
|
|
// TODO: canSwitch functionality is currently disabled - set to true to allow all switches
|
|
|
|
// Original logic: final canSwitch = isParentUser || (!isParentUser && profile.responseId == appState.getSuperUserID);
|
|
|
|
// Original logic: final canSwitch = isParentUser || (!isParentUser && profile.responseId == appState.getSuperUserID);
|
|
|
|
|