From 1b337afe372b6f93feb4ef1459dd83891acee538 Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 6 Jan 2012 18:30:01 -0500 Subject: [PATCH] fixes #200 --- app/models/post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/post.rb b/app/models/post.rb index 9bff461a4..62026bf75 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -31,7 +31,7 @@ class Post < ActiveRecord::Base validates_presence_of :parent, :if => lambda {|rec| !rec.parent_id.nil?} validate :validate_parent_does_not_have_a_parent attr_accessible :source, :rating, :tag_string, :old_tag_string, :last_noted_at, :parent_id, :as => [:member, :privileged, :contributor, :janitor, :moderator, :admin, :default] - attr_accessible :is_rating_locked, :is_note_locked, :as => [:janitor, :moderator] + attr_accessible :is_rating_locked, :is_note_locked, :as => [:janitor, :moderator, :admin] attr_accessible :is_status_locked, :as => [:admin] scope :pending, where(["is_pending = ?", true]) scope :pending_or_flagged, where(["(is_pending = ? OR is_flagged = ?)", true, true])