def addons_reviewer_required(f):
 @login_required
 @functools.wraps(f)
 def wrapper(request, *args, **kw):
  if (_view_on_get(request) or acl.check_addons_reviewer(request)):
   return f(request, *args, **kw)
  raise PermissionDenied
 return wrapper

def addons_reviewer_required ( f ) : @ login_required @ functools . wraps ( f ) def wrapper ( request , * args , ** kw ) : if ( _view_on_get ( request ) or acl . check_addons_reviewer ( request ) ) : return f ( request , * args , ** kw ) raise PermissionDenied return wrapper
require an addons reviewer user .