summaryrefslogtreecommitdiff
authorOwen W. Taylor <otaylor@fishsoup.net>2009-11-07 23:18:13 (GMT)
committer Owen W. Taylor <otaylor@fishsoup.net>2009-11-07 23:18:13 (GMT)
commite4edbe4f8280156e27f8a5b0d76a07c607c56869 (patch)
tree9c0ee37816aa096820357be13316c1dbf647b1e4
parent514da4b9726a22344d2a45979906613e43b88690 (diff)
Fix problem with private attachmentsmaster
Fix problem where when checking access rights to a private attachment an undefined variable $user was being accessed. https://bugzilla.gnome.org/show_bug.cgi?id=601118
-rw-r--r--extension/lib/SplinterUtil.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/extension/lib/SplinterUtil.pm b/extension/lib/SplinterUtil.pm
index 80c11dd..313f64e 100644
--- a/extension/lib/SplinterUtil.pm
+++ b/extension/lib/SplinterUtil.pm
@@ -36,8 +36,8 @@ sub attachment_is_visible {
return (Bugzilla->user->can_see_bug($attachment->bug->id) &&
(!$attachment->isprivate ||
- $user->id == $attachment->attacher->id ||
- $user->is_insider));
+ Bugzilla->user->id == $attachment->attacher->id ||
+ Bugzilla->user->is_insider));
}
sub attachment_id_is_patch {