diff options
author | lpsolit%gmail.com <> | 2009-04-06 20:02:51 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2009-04-06 20:02:51 +0000 |
commit | 1633d9835c4ab45d583ba4b6d8b585d66925a5b2 (patch) | |
tree | a59da1c5899387fc43a553a41810e2fe4aea1bc4 /Bugzilla/User.pm | |
parent | 2ee6d9a1b8ebde208a1ff11e97c909925fe87303 (diff) | |
download | bugs-1633d9835c4ab45d583ba4b6d8b585d66925a5b2.tar bugs-1633d9835c4ab45d583ba4b6d8b585d66925a5b2.tar.gz bugs-1633d9835c4ab45d583ba4b6d8b585d66925a5b2.tar.bz2 bugs-1633d9835c4ab45d583ba4b6d8b585d66925a5b2.tar.xz bugs-1633d9835c4ab45d583ba4b6d8b585d66925a5b2.zip |
Bug 486881: A powerless user can still see a restricted bug when he removes all his roles related to the bug - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r-- | Bugzilla/User.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 74289fe56..cf4cb5fa6 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -588,6 +588,8 @@ sub visible_bugs { # We only check the visibility of bugs that we haven't # checked yet. + # Bugzilla::Bug->update automatically removes updated bugs + # from the cache to force them to be checked again. my $visible_cache = $self->{_visible_bugs_cache} ||= {}; my @check_ids = grep(!exists $visible_cache->{$_}, @bug_ids); |