app/controllers/app_settings_controller.rb
# Removes site administrator privilages from an employee
Removes site administrator privilages from an employee
Removes site administrator privilages from an employee
def remove_admin
    @new_admin = Employee.find(params[:employee])
    @new_admin.site_admin = nil
    @new_admin.save
    flash[:notice] = t(:site_admin) + t(:removed)
    redirect_to admins_app_settings_path 
  end
def remove_admin @new_admin = Employee . find ( params [ :employee ] ) @new_admin . site_admin = nil @new_admin . save flash [ :notice ] = t ( :site_admin ) + t ( :removed ) redirect_to admins_app_settings_path end
Removes site administrator privilages from an employee
Removes site administrator privilages from an employee