fixes #3282
This commit is contained in:
@@ -19,7 +19,7 @@ class Pool < ApplicationRecord
|
||||
after_create :synchronize!
|
||||
before_destroy :create_mod_action_for_destroy
|
||||
attr_accessible :name, :description, :post_ids, :post_id_array, :post_count, :is_active, :category, :as => [:member, :gold, :platinum, :moderator, :admin, :default]
|
||||
attr_accessible :is_deleted, :as => [:moderator, :admin]
|
||||
attr_accessible :is_deleted, :as => [:builder, :moderator, :admin]
|
||||
|
||||
module SearchMethods
|
||||
def deleted
|
||||
@@ -208,7 +208,7 @@ class Pool < ApplicationRecord
|
||||
end
|
||||
|
||||
def deletable_by?(user)
|
||||
user.is_moderator?
|
||||
user.is_builder?
|
||||
end
|
||||
|
||||
def create_mod_action_for_delete
|
||||
|
||||
Reference in New Issue
Block a user