[FIX] Custom User Status throttled by rate limiter (#15001)

pull/15013/head
Pierre H. Lehnen 6 years ago committed by Diego Sampaio
parent 2e6992945f
commit cab7c89e75
  1. 2
      app/lib/server/functions/setStatusText.js

@ -45,7 +45,7 @@ export const _setStatusText = function(userId, statusText) {
return true;
};
export const setStatusText = RateLimiter.limitFunction(_setStatusText, 1, 60000, {
export const setStatusText = RateLimiter.limitFunction(_setStatusText, 5, 60000, {
0() {
// Administrators have permission to change others status, so don't limit those
return !Meteor.userId() || !hasPermission(Meteor.userId(), 'edit-other-user-info');

Loading…
Cancel
Save