diff options
author | Futseh <jonas.folvik@gmail.com> | 2019-02-24 18:17:46 +0100 |
---|---|---|
committer | Futseh <jonas.folvik@gmail.com> | 2019-02-24 18:17:46 +0100 |
commit | f6cb866b854f661152601d195901360b73aeb8eb (patch) | |
tree | 6d44487d73e15fde1c90412c17174b90ad074718 | |
parent | 20ef79278f890d42a5cd0bd6c077b257398de6c2 (diff) |
Can disable the oppurtunity to delete threads in the forums
-rw-r--r-- | app/controllers/forums_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |