mlte-team / mlte

An infrastructure for evaluating machine learning models.
http://mlte.rtfd.io/
MIT License
10 stars 3 forks source link

Prevent loading of unauthorized pages while showing unauthorized message #433

Open sebastian-echeverria opened 4 months ago

sebastian-echeverria commented 4 months ago

If I try to access a page I don't have authorization for (say, http://localhost:8000/admin/user-management as a non-admin), I get a proper message indicating the issue, but it still shows me the whole page while the message is showing up. I can't do anything on the page and the page is not loading data, but it still seems like a security issue. If would be better if the page was not loaded. Minor issue