lib/login_system.rb
# overwrite if you want to have special behavior in case the user is not authorized
# to access the current operation. 
# the default action is to redirect to the login screen
# example use :
# a popup window might just close itself for instance
overwrite if you want to have special behavior in case the user is not authorized
to access the current operation.
the default action is to redirect to the login screen
example use :
a popup window might just close itself for instance
overwrite if you want to have special behavior in case the user is not authorized to access the current operation . the default action is to redirect to the login screen example use : a popup window might just close itself for instance
def access_denied
    if @user.nil?
			store_location
      redir_login
    else
      redir_error TinyException::SECURITYHACK, @user
    end
    false
  end
def access_denied if @user . nil? store_location redir_login else redir_error TinyException :: SECURITYHACK , @user end false end
overwrite if you want to have special behavior in case the user is not authorized
to access the current operation.
overwrite if you want to have special behavior in case the user is not authorized to access the current operation .