expertiza/expertiza

View on GitHub
app/controllers/eula_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
class EulaController < ApplicationController
  include AuthorizationHelper

  def action_allowed?
    current_user_has_student_privileges?
  end

  def display; end

  def accept
    session[:user].update_attribute('is_new_user', 0)
    redirect_to controller: 'student_task', action: 'list'
  end

  def decline
    flash[:notice] = 'Please accept the license agreement in order to use the system.'
    redirect_to action: 'display'
  end
end