code: def permission_required_with_403(perm, login_url=None):
      
      return user_passes_test_with_403(lambda u: u.has_perm(perm), login_url=login_url)
docs: Decorator for views that checks whether a user has a particular permission
      enabled, redirecting to the login page or rendering a 403 as necessary.
  
      See :meth:`django.contrib.auth.decorators.permission_required`.