Class: ReportsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/reports_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#new_session_path

Instance Method Details

#dataset_listObject



3
4
5
6
7
8
9
# File 'app/controllers/reports_controller.rb', line 3

def dataset_list
  if current_user.super_admin? || current_user.moderator?
    @works = Work.where(sql_where(params))
  else
    redirect_to "/"
  end
end