diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-05-22 20:05:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-22 20:05:24 +0200 |
commit | 4d81809f36fcbfe787e23d490f2cb0ad943ab32c (patch) | |
tree | 5539c27a2b5d680285215911d3c75367c8085b82 | |
parent | 7745a22ec748be8bd6410cda0a61d197e49a72a3 (diff) |
Yeah, it was supposed to be #create?
-rw-r--r-- | app/controllers/invites_controller.rb | 2 |
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) |