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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user