require authentication for invite actions
This commit is contained in:
parent
629277502f
commit
fd6d41ddad
1 changed files with 4 additions and 2 deletions
|
|
@ -6,6 +6,8 @@ require Rails.root.join('lib', 'email_inviter')
|
|||
|
||||
class InvitationsController < ApplicationController
|
||||
|
||||
before_filter :authenticate_user!, :only => [:new, :create]
|
||||
|
||||
def new
|
||||
@invite_code = current_user.invitation_code
|
||||
respond_to do |format|
|
||||
|
|
|
|||
Loading…
Reference in a new issue