dmails: remove ability to mark dmails as spam.

Instead of marking messages as spam, users can either report the message
or mark it as deleted.
This commit is contained in:
evazion
2020-02-02 23:43:38 -06:00
parent b8aa223ecb
commit 170a0e8a48
4 changed files with 3 additions and 12 deletions

View File

@@ -61,7 +61,7 @@ class DmailsController < ApplicationController
def dmail_params(context)
permitted_params = %i[title body to_name to_id] if context == :create
permitted_params = %i[is_spam is_read is_deleted] if context == :update
permitted_params = %i[is_read is_deleted] if context == :update
params.fetch(:dmail, {}).permit(permitted_params)
end