Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block logging for users without any group assigned - frontend #547

Open
monikakrawczak opened this issue Aug 26, 2020 · 1 comment
Open
Assignees
Labels
frontend Frontend work

Comments

@monikakrawczak
Copy link
Contributor

We have few admin users who shouldn't be able to log in as a driver or passenger to the regular frontend as this doesn't make sense. Let's block them from logging in by checking if said user has some is in Passengers or Drivers group.

Backend is already merged - #413

What we need to do now is:

  1. When a user is not assigned to any group:
  • block it and display the error message:
    "Logging in is not possible.
    If you want to log in, ask the admin to add you to the group of Passengers or Drivers"
  • add button "OK" -> which closes the error message
@monikakrawczak monikakrawczak added the frontend Frontend work label Aug 26, 2020
@juliaanholcer juliaanholcer self-assigned this Aug 26, 2020
@arturtamborski arturtamborski moved this to 📋 Backlog in pah-fm (general) Aug 31, 2022
@arturtamborski
Copy link
Member

still relevant, backend should not issue tokens for users who do not have groups assigned to them.

@arturtamborski arturtamborski moved this from 📋 Backlog to 📝 To Do in pah-fm (general) Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Frontend work
Projects
Status: 📝 To Do
Development

No branches or pull requests

3 participants