marcpage / scheduling

Restaurant staff scheduling website
The Unlicense
3 stars 4 forks source link

If a user only has one restaurant, redirect to that restaurant #45

Closed marcpage closed 2 years ago

marcpage commented 2 years ago

In scheduling.py, the login() method should only send them to /welcome if they are employees of multiple restaurants. Something like:

restaurant_count = len(set([r.role.restaurant_id for r in user.roles]))

suryasis-hub commented 2 years ago

Hey can you assign the issue to me.

marcpage commented 2 years ago

Hey, @suryasis-hub thank you so much for offering to contribute. I'm sorry, I didn't see your comment until I completed it this morning. We are excited to have you working on this project