Main repository of the Weekplanner tablet application
GNU General Public License v3.0
15
stars
3
forks
source link
When choosing a logged in user on the Choose_citizen_screen, only citizens are shown, and sometimes the page is empty including the add new user button. #982
As can be seen in the choose_citizen_bloc.dart file, only Citizens are listed when showing logged in users, and only if the current role is a Guardian, since it links logged in citizens to a guardian user.
Instead, all logged in users should always be shown on this list, and it should be done without linking citizens to a guardian user, since users need to log in independent of each other.
Possible Suggested Solution
change UpdateBloc() in choose_citizen_bloc.dart to include guardians and trustees. And to load citizens in a way that is unrelated to the current guardian user.
Make sure the currently logged in user role is updated correctly when switching users, since this also seems to be unreliable when switching from guardian to citizen and back.
unsure where other changes may be necessary, but it seems like a repeating problem that users are linked in ways they should not be...
Description
As can be seen in the choose_citizen_bloc.dart file, only Citizens are listed when showing logged in users, and only if the current role is a Guardian, since it links logged in citizens to a guardian user. Instead, all logged in users should always be shown on this list, and it should be done without linking citizens to a guardian user, since users need to log in independent of each other.
Possible Suggested Solution