There is only ever one account per database

So there is no protection in scoping things by account cc @jorgemanrubia
This commit is contained in:
David Heinemeier Hansson
2025-04-12 11:30:28 +02:00
parent 9359cac330
commit 2f8a9bed0e
+2 -2
View File
@@ -6,10 +6,10 @@ module Event::Particulars
end
def assignees
@assignees ||= account.users.where id: assignee_ids
@assignees ||= User.where id: assignee_ids
end
def comment
@comment ||= account.comments.find_by(id: comment_id)
@comment ||= Comment.find_by id: comment_id
end
end