lib/login_system.rb
# login_required filter. add 
#
#   before_filter :login_required
#
# if the controller should be under any rights management. 
# for finer access control you can overwrite
#   
#   def authorize?(user)
# 


if the controller should be under any rights management.
for finer access control you can overwrite

def authorize?(user)
if the controller should be under any rights management . for finer access control you can overwrite def authorize? ( user )
def auth_required(privlevel = nil)
		u = get_user 
    if u and authorize?(u, privlevel)
      return true
    end
    store_location
    access_denied
    return false 
  end
def auth_required ( privlevel = nil ) u = get_user if u and authorize? ( u , privlevel ) return true end store_location access_denied return false end
login_required filter.
login_required filter .
# store current location so that we can  # come back after the user logged in # call overwriteable reaction to unauthorized access
privlevel
<not_specific>