jvdm / inkirinet-hotspot

Inkirinet Hotspot is a Django-based web application offering frontend and management for the Inkiri Center's WiFi hotspot.
Mozilla Public License 2.0
2 stars 0 forks source link

Redirect to login view if authenticated user doesn't have a contract #2

Open jvdm opened 3 years ago

jvdm commented 3 years ago

Current State

Given an authenticated user that doesn't have a Inkirinet's contract associated (User.contracts.exists() == False), when opening an authenticated view (e.g. Home) 403 Forbidden is returned.

Desired State

Authenticated user without contracts should be redirected to login view with a message explaining why he was redirected (e.g. "You don't have permission to access that page".