贴吧帖子创建人删除帖子报“页面不存在”的问题

This commit is contained in:
daiao 2017-01-16 15:28:56 +08:00
parent 7d226f9ce0
commit e03d80de69
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ class Memo < ActiveRecord::Base
end
def destroyable_by? user
(user && self.author == user) || user.admin? || self.forum.creator == user
(user && self.author == user) || user.admin? || self.forum.creator == user || Memo.find(self.root_id).author == user
#self.author == user || user.admin?
end