From f6cb866b854f661152601d195901360b73aeb8eb Mon Sep 17 00:00:00 2001 From: Futseh Date: Sun, 24 Feb 2019 18:17:46 +0100 Subject: Can disable the oppurtunity to delete threads in the forums --- app/controllers/forums_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/forums_controller.rb b/app/controllers/forums_controller.rb index 206f01f..16ea5b2 100644 --- a/app/controllers/forums_controller.rb +++ b/app/controllers/forums_controller.rb @@ -89,7 +89,7 @@ class ForumsController < ApplicationController end def forum_params(add = []) - a = [:name, :position, :role_read_id, :role_write_id, :necro_length] + add + a = [:name, :position, :role_read_id, :role_write_id, :necro_length, :disable_deletion] + add params.require(:forum).permit(a) end end -- cgit v1.2.3