

def permission_required(perm, login_url=None):
    'Replacement for django.contrib.auth.decorators.permission_required that\n    returns 403 Forbidden if the user is already logged in.\n    '
    return user_passes_test((lambda u: u.has_perm(perm)), login_url=u)

dataset/ETHPy150Open mingchen/django-cas-ng/django_cas_ng/decorators.py permission_required/VarMisuse@33/87 `login_url`->`u`