Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.625 kb
class ApplicationController < ActionController::Base
include Tuersteher::ControllerExtensions
before_filter :check_access # methode is from Tuersteher::ControllerExtensions
# This method need Tuersteher for his rules-check
# It should return a User-Object, which have a method "has_role?"
#
# This is here a dummy Stub-Implementation
def current_user
user = Object.new
def user.has_role?(role)
true
end
user
end
# This Method is called from Tuersteher if access are denied (no grant rules fired)
# stub Authentication-Methode
def access_denied
redirect_to "/"
end
end
Jump to Line
Something went wrong with that request. Please try again.