molten-trunk/molten5_withgrid/app/controllers/abstract_admin_controller.rb
# only super users and higher can gain access by default to the admin area.
only super users and higher can gain access by default to the admin area.
only super users and higher can gain access by default to the admin area .
def authorized?
    if !current_contact.privilege?(AppConstants::PRIVILEGE[:super_user])
      flash[:warning]  = "You are not authorized to access this area"
      false
    else
      true
    end 
  end
def authorized? if ! current_contact . privilege? ( AppConstants :: PRIVILEGE [ :super_user ] ) flash [ :warning ] = "You are not authorized to access this area" false else true end end
only super users and higher can gain access by default to the admin area.
only super users and higher can gain access by default to the admin area .