ad_restrict_entire_server_to_registered_users (public)
ad_restrict_entire_server_to_registered_users conn args why
Defined in packages/acs-tcl/tcl/security-procs.tcl
A preauth filter that will halt service of any page if the user is unregistered, except the site index page and stuff underneath [subsite]/register. Use permissions on the site node map to control access.
- Parameters:
- conn (required)
- args (required)
- why (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set url [ad_conn url] if {$url ni {"/favicon.ico" "/index.tcl" "/"} && ![string match "/global/*" $url] && ![string match "*/register/*" $url] && ![string match "*/SYSTEM/*" $url] && ![string match "*/user_please_login.tcl" $url]} { # not one of the magic acceptable URLs set user_id [ad_conn user_id] if {$user_id == 0} { auth::require_login return filter_return } } return filter_okGeneric XQL file: packages/acs-tcl/tcl/security-procs.xql
PostgreSQL XQL file: packages/acs-tcl/tcl/security-procs-postgresql.xql
Oracle XQL file: packages/acs-tcl/tcl/security-procs-oracle.xql