app/controllers/deposits_controller.rb
# if the current user isn't logged in and isn't an administrator, tell them they need to an admin to do what they were trying to do
if the current user isn't logged in and isn't an administrator, tell them they need to an admin to do what they were trying to do
if the current user isn ' t logged in and isn ' t an administrator tell them they need to an admin to do what they were trying to do
def verify_is_admin
    unless current_user && current_user.admin?
      render :html => "<h1>Unauthorised</h1><p>You are not authorised to view this page</p>".html_safe, :status => :unauthorized, :layout => 'blacklight'
    end 
  end
def verify_is_admin unless current_user && current_user . admin? render :html => "<h1>Unauthorised</h1><p>You are not authorised to view this page</p>" . html_safe , :status => :unauthorized , :layout => 'blacklight' end end
if the current user isn't logged in and isn't an administrator, tell them they need to an admin to do what they were trying to do
if the current user isn ' t logged in and isn ' t an administrator tell them they need to an admin to do what they were trying to do