

def permission_required(perm, login_url=None):
    '\n    Decorator for views that checks whether a user has a particular permission\n    enabled, redirecting to the log-in page if necessary.\n    '
    return user_passes_test((lambda u: u.has_perm(perm)), login_url=u)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/auth/decorators.py permission_required/VarMisuse@33/94 `login_url`->`u`