Index: openacs-4/packages/xotcl-core/tcl/policy-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-core/tcl/policy-procs.tcl,v diff -u -r1.29.2.3 -r1.29.2.4 --- openacs-4/packages/xotcl-core/tcl/policy-procs.tcl 23 Jul 2019 16:56:53 -0000 1.29.2.3 +++ openacs-4/packages/xotcl-core/tcl/policy-procs.tcl 30 Jul 2019 15:47:52 -0000 1.29.2.4 @@ -221,8 +221,10 @@ } else { ns_log notice "enforce_permissions: $user_id doesn't have $privilege on $object" } - ad_return_forbidden "[_ xotcl-core.permission_denied]" \ - [_ xotcl-core.policy-error-insufficient_permissions] + if {[ns_conn isconnected]} { + ad_return_forbidden [_ xotcl-core.permission_denied] \ + [_ xotcl-core.policy-error-insufficient_permissions] + } ad_script_abort }