Index: openacs-4/packages/acs-developer-support/tcl/acs-developer-support-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/tcl/acs-developer-support-procs.tcl,v diff -u -r1.22 -r1.23 --- openacs-4/packages/acs-developer-support/tcl/acs-developer-support-procs.tcl 29 Dec 2003 20:08:52 -0000 1.22 +++ openacs-4/packages/acs-developer-support/tcl/acs-developer-support-procs.tcl 30 Dec 2003 22:49:32 -0000 1.23 @@ -19,15 +19,14 @@ ad_proc -public ds_permission_p {} { Do we have permission to view developer support stuff. } { - return [ad_permission_p -user_id [ds_get_real_user_id] [ds_instance_id] "admin"] + return [permission::permission_p -party_id [ds_ad_conn user_id] -object_id [ds_instance_id] -privilege "admin"] } ad_proc -public ds_require_permission { object_id privilege } { - set user_id [ds_get_real_user_id] - if {![ad_permission_p -user_id $user_id $object_id $privilege]} { + if {![permission::permission_p -party_id [ds_ad_conn user_id] -object_id $object_id -privilege $privilege]} { if {$user_id == 0} { ad_maybe_redirect_for_registration } else { @@ -102,16 +101,13 @@ return "" } - set out "
- Developer Information - |
$counter database command[ad_decode $counter 1 " taking" "s totalling"] [format "%.f" [expr { $total }]] ms |
page served in - [format "%.f" [expr { ([clock clicks -milliseconds] - $conn(startclicks)) }]] ms |
" foreach comment [nsv_get ds_request "$ad_conn(request).comment"] { append out "Comment: $comment \n" } - append out " |
[ds_user_select_widget] |