πŸ” 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).