felipe.franco
felipe.franco
TTCTheo's Typesafe Cult
Created by felipe.franco on 7/26/2023 in #questions
Check DB or update session when DB role changes
I need to block access to certain routes based on the user's role and companies associated with they. The problem I'm having is that if a user is already connected with a session, when their role is updated on the DB the session does not update, so it keeps the same role and companies, keeping the same permission as before.
13 replies