贴吧帖子创建人删除帖子报“页面不存在”的问题
This commit is contained in:
parent
7d226f9ce0
commit
e03d80de69
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue