about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-12-01 20:26:57 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-12-01 12:26:57 +0100
commiteee3b32b7714a302ae384c92ef13601167ec892a (patch)
tree9dcef9321f3d56c5deb5d82bb932e59fd992fb84 /app/controllers
parentdf03042a6ed84aad7ea21e683aa56726466a7790 (diff)
Fix invites form path (#5861)
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/admin/invites_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/admin/invites_controller.rb b/app/controllers/admin/invites_controller.rb
index f4207e3e2..607588d90 100644
--- a/app/controllers/admin/invites_controller.rb
+++ b/app/controllers/admin/invites_controller.rb
@@ -29,5 +29,11 @@ module Admin
       @invite.expire!
       redirect_to admin_invites_path
     end
+
+    private
+
+    def resource_params
+      params.require(:invite).permit(:max_uses, :expires_in)
+    end
   end
 end