<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def permission_required_with_403(perm, login_url=None):
 """ 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`. """

    return user_passes_test_with_403(lambda u: u.has_perm(perm), login_url=login_url)