about summary refs log tree commit diff
diff options
context:
space:
mode:
-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)