Skip to content

Commit b710355

Browse files
committed
Except system and staff comments from closure
1 parent 109f04b commit b710355

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/complaint_comment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ComplaintComment < ApplicationRecord
1212
private
1313

1414
def can_add_more
15-
if complaint.status == 'closed'
15+
if complaint.status == 'closed' && user_id != -1 && !user.staff?
1616
errors.add(:base, 'You cannot reply to a closed complaint') and return
1717
end
1818

0 commit comments

Comments
 (0)