summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Attachment.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm
index 33c761cf1..9748d17f4 100644
--- a/Bugzilla/Attachment.pm
+++ b/Bugzilla/Attachment.pm
@@ -613,12 +613,13 @@ sub _check_filename {
sub _check_is_private {
my ($invocant, $is_private) = @_;
+ $is_private = $is_private ? 1 : 0;
if (((!ref $invocant && $is_private)
|| (ref $invocant && $invocant->isprivate != $is_private))
&& !Bugzilla->user->is_insider) {
ThrowUserError('user_not_insider');
}
- return $is_private ? 1 : 0;
+ return $is_private;
}
sub _check_is_url {