]> cat aescling's git repositories - mastodon.git/commitdiff
Yeah, it was supposed to be #create?
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 22 May 2018 18:05:24 +0000 (20:05 +0200)
committerGitHub <noreply@github.com>
Tue, 22 May 2018 18:05:24 +0000 (20:05 +0200)
app/controllers/invites_controller.rb

index 8e87c63cfd2eb749f287b41305d6dca0e9d64ebe..26ef99b7e002d448e8b709a61110b5c84bb8c770 100644 (file)
@@ -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)