π Overview
Link Switcher uses the standard Django User model for authentication (admin site) and as the owner for most business entities.
Official Django docs: https://docs.djangoproject.com/en/5.2/topics/auth/default/#user-objects
π Access & Roles
- Superuser (
is_superuser=True) has access to all features and all objects. - Staff user (
is_staff=True) can access the admin panel but only sees objects they are allowed to see.
π Permissions
Link Switcher relies on standard Django model permissions and groups (created by migration) to grant access:
SWITCHER(Link / MirrorRule / OfferLink / TrackingDomainPipeline)GSC(DomainAppealRequest / DomainSafetyRequest)MAIL_TRACKER(BlockedByMailTrackerDomain)AFFISE(AffiseSwitchRequest)
π₯ Employee hierarchy
For most admin views, object visibility is additionally scoped by the Employee hierarchy (a βmasterβ can view their employeesβ objects).