#NEWLINE# def any_permission_required( * perms ) : #NEWLINE# #INDENT# '\n    Decorator that accepts a list of permission names, and allows the user\n    to pass if they have *any* of the permissions in the list\n    ' #NEWLINE# def test( user ) : #NEWLINE# #INDENT# for perm in perms : #NEWLINE# #INDENT# if user . has_perm ( perm ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False #NEWLINE# #UNINDENT# return user_passes_test ( perms )