From 419aa1cedf795adca24311c01ef0b01f4e35f44e Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 17 Mar 2013 20:58:40 -0400 Subject: [PATCH] potential fix for #919 --- app/models/post_flag.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/post_flag.rb b/app/models/post_flag.rb index a88021e11..142718905 100644 --- a/app/models/post_flag.rb +++ b/app/models/post_flag.rb @@ -54,7 +54,9 @@ class PostFlag < ActiveRecord::Base end def validate_creator_is_not_limited - if flag_count_for_creator >= 10 + if CurrentUser.is_janitor? + false + elsif flag_count_for_creator >= 10 errors[:creator] << "can flag 10 posts a day" false else