site admin can see stuff
This commit is contained in:
parent
78f412e50c
commit
7dc42fe45d
|
@ -2,7 +2,7 @@ class RecruitmentsController < PseudoSessionController
|
|||
include ActionView::Helpers::TextHelper
|
||||
before_filter :set_key_for_this, :except => ["index", "show"]
|
||||
before_filter :load_profile, :except => ["newprofile", "createprofile", "index", "show", "advancedform"]
|
||||
before_filter :is_user_authorized?, :except => ["index", "show", "advancedform", "write_recommendation", "create_recommendation"]
|
||||
before_filter :is_user_authorized?, :except => ["index", "show", "advancedform", "write_recommendation", "create_recommendation"] if !current_user.is_admin?
|
||||
layout :get_layout
|
||||
|
||||
def index
|
||||
|
|
Loading…
Reference in New Issue