def permission_required_or_403(perm, *args, **kwargs):
 kwargs['redirect_to_login'] = False
 return permission_required(perm, *args, **kwargs)

def permission_required_or_403 ( perm , * args , ** kwargs ) : kwargs [ 'redirect_to_login' ] = False return permission_required ( perm , * args , ** kwargs )
simple wrapper for permission_required decorator .