diff --git a/app/controllers/invites_controller.rb b/app/controllers/invites_controller.rb index 8e87c63cfd2..26ef99b7e00 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)