summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-07-25 10:16:45 +0200
committerYorhel <git@yorhel.nl>2015-07-25 10:16:45 +0200
commite519f34316afbf3fbe5e0fb92cf169e745e4a628 (patch)
treeb57211e7fd28ee8862f222c505328c013addff71 /lib
parentd60a2e3749b3bcaf6cbd4fa6bd63c61615287a34 (diff)
Handler::Misc: Fix minor calculation error in determining "admin" user
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/Misc.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm
index d190291a..57974c6a 100644
--- a/lib/VNDB/Handler/Misc.pm
+++ b/lib/VNDB/Handler/Misc.pm
@@ -318,7 +318,7 @@ sub docpage {
s{^:MODERATORS:$}{
my $l = $self->dbUserGet(results => 100, sort => 'id', notperm => $self->{default_perm}, what => 'extended');
my $admin = 0;
- $admin += $_ for values %{$self->{permissions}};
+ $admin |= $_ for values %{$self->{permissions}};
'<dl>'.join('', map {
my $u = $_;
my $p = $u->{perm} >= $admin ? 'admin' : join ', ', sort map +($u->{perm} &~ $self->{default_perm}) & $self->{permissions}{$_} ? $_ : (), keys %{$self->{permissions}};