bug_tracker::access_policy (public)

 bug_tracker::access_policy

Defined in packages/bug-tracker/tcl/bug-tracker-procs.tcl

Detect and return the current access policy.

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::bug::new bug_tracker::bug::new (public) bug_tracker::access_policy bug_tracker::access_policy bug_tracker::bug::new->bug_tracker::access_policy bug_tracker::user_bugs_only_p bug_tracker::user_bugs_only_p (public) bug_tracker::user_bugs_only_p->bug_tracker::access_policy packages/bug-tracker/www/admin/access-policy-edit.tcl packages/bug-tracker/ www/admin/access-policy-edit.tcl packages/bug-tracker/www/admin/access-policy-edit.tcl->bug_tracker::access_policy packages/bug-tracker/www/admin/index.tcl packages/bug-tracker/ www/admin/index.tcl packages/bug-tracker/www/admin/index.tcl->bug_tracker::access_policy ad_conn ad_conn (public) bug_tracker::access_policy->ad_conn db_1row db_1row (public) bug_tracker::access_policy->db_1row permission::inherit_p permission::inherit_p (public) bug_tracker::access_policy->permission::inherit_p

Testcases:
No testcase defined.
Source code:
    set package_id [ad_conn package_id]
    db_1row get_bug {}
    if {[permission::inherit_p -object_id $bug_id]} {
        return [list "#bug-tracker.Show_all_bugs#" all_bugs]
    } else {
        return [list "#bug-tracker.Show_user_bugs_only#" user_bugs]
    }
Generic XQL file:
<fullquery name="bug_tracker::access_policy.get_bug">
    <querytext>
        select min(bug_id) as bug_id
         from bt_bugs 
        where project_id = :package_id
      </querytext>
</fullquery>
packages/bug-tracker/tcl/bug-tracker-procs.xql

PostgreSQL XQL file:
packages/bug-tracker/tcl/bug-tracker-procs-postgresql.xql

Oracle XQL file:
packages/bug-tracker/tcl/bug-tracker-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: