about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-05-22 20:05:24 +0200
committerGitHub <noreply@github.com>2018-05-22 20:05:24 +0200
commit4d81809f36fcbfe787e23d490f2cb0ad943ab32c (patch)
tree5539c27a2b5d680285215911d3c75367c8085b82
parent7745a22ec748be8bd6410cda0a61d197e49a72a3 (diff)
Yeah, it was supposed to be #create?
-rw-r--r--app/controllers/invites_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/invites_controller.rb b/app/controllers/invites_controller.rb
index 8e87c63cf..26ef99b7e 100644
--- a/app/controllers/invites_controller.rb
+++ b/app/controllers/invites_controller.rb
@@ -8,7 +8,7 @@ class InvitesController < ApplicationController
   before_action :authenticate_user!
 
   def index
-    authorize :invite, :index?
+    authorize :invite, :create?
 
     @invites = invites
     @invite  = Invite.new(expires_in: 1.day.to_i)