Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mtd): fix
synchronize_mtd
before_request function
Use `flask_login.current_user` ; rather than `g.current_user` that may not exist due to uncontrolled order of execution for before_request functions calls ; to retrieve the `id_role` specified for user MTD synchronization. If not user authenticatd ; i.e. `flask_login.current_user.is_authenticated` is `False` ; no user MTD sync is made.
- Loading branch information