Index: openacs-4/packages/bug-tracker/lib/nav-bar.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bug-tracker/lib/nav-bar.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/bug-tracker/lib/nav-bar.tcl 28 Aug 2003 09:45:29 -0000 1.7 +++ openacs-4/packages/bug-tracker/lib/nav-bar.tcl 24 Sep 2003 15:14:10 -0000 1.8 @@ -11,9 +11,20 @@ set package_url [ad_conn package_url] set component_id [bug_tracker::conn component_id] -set admin_p [permission::permission_p -object_id $package_id -privilege admin] -set create_p [expr { [ad_conn user_id] == 0 || [permission::permission_p -object_id [ad_conn package_id] -privilege create] }] +set admin_p [permission::permission_p \ + -party_id [ad_conn untrusted_user_id] \ + -object_id $package_id \ + -privilege admin] +if { [ad_conn untrusted_user_id] == 0 } { + set create_p 1 +} else { + set create_p [permission::permission_p \ + -party_id [ad_conn untrusted_user_id] \ + -object_id [ad_conn package_id] \ + -privilege create] +} + bug_tracker::get_pretty_names -array pretty_names set notification_url [lindex $notification_link 0] @@ -45,7 +56,7 @@ multirow append links "New [bug_tracker::conn Bug]" "${url_prefix}bug-add" } -if { [ad_conn user_id] != 0 } { +if { [ad_conn untrusted_user_id] != 0 } { multirow append links "My [bug_tracker::conn Bugs]" "${url_prefix}.?[export_vars -url { { filter.assignee {[ad_conn user_id]} } }]" } Index: openacs-4/packages/bug-tracker/tcl/bug-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bug-tracker/tcl/bug-procs.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/bug-tracker/tcl/bug-procs.tcl 28 Aug 2003 09:45:29 -0000 1.3 +++ openacs-4/packages/bug-tracker/tcl/bug-procs.tcl 24 Sep 2003 15:14:10 -0000 1.4 @@ -332,8 +332,8 @@ workflow.Role_DefaultAssignees_CreationUser } } - assignee { - pretty_name "Assignee" + resolver { + pretty_name "Resolver" callbacks { bug-tracker.ComponentMaintainer bug-tracker.ProjectMaintainer @@ -364,21 +364,21 @@ comment { pretty_name "Comment" pretty_past_tense "Commented" - allowed_roles { submitter assignee } + allowed_roles { submitter resolver } privileges { read write } always_enabled_p t } edit { pretty_name "Edit" pretty_past_tense "Edited" - allowed_roles { submitter assignee } + allowed_roles { submitter resolver } privileges { write } always_enabled_p t edit_fields { component_id summary found_in_version - role_assignee + role_resolver fix_for_version resolution fixed_in_version @@ -387,16 +387,16 @@ reassign { pretty_name "Reassign" pretty_past_tense "Reassigned" - allowed_role { submitter assignee } + allowed_role { submitter resolver } privileges { write } enabled_states { resolved } assigned_states { open } - edit_fields { role_assignee } + edit_fields { role_resolver } } resolve { pretty_name "Resolve" pretty_past_tense "Resolved" - assigned_role "assignee" + assigned_role "resolver" enabled_states { resolved } assigned_states { open } new_state "resolved"