Umuzi-org / Tilde

Open source agile, collaborative learning platform.
52 stars 34 forks source link

Add login_required decorator to user_passes_test_or_forbidden function #683

Closed kingraphaii closed 7 months ago

kingraphaii commented 7 months ago

Description:

If a user is logged in and they try to access a page they are not allowed to see then they are redirected to a "forbidden" page.

If the user is not logged in then they should get redirected to the login page.

Screenshots/videos

I solemnly swear that: