summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Staff.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-11-01 10:24:43 +0100
committerYorhel <git@yorhel.nl>2015-11-01 10:37:30 +0100
commit4b1807a58912ff0b4542063071e072ccf53fd1bd (patch)
treed809d1c4348e963bdbd6e1003ad0fe11502e6c15 /lib/VNDB/Handler/Staff.pm
parent21990745f46bc4536ab6ecf330e1a3a0ebe4e430 (diff)
Remove deprecated 'staffedit' permission flag
Diffstat (limited to 'lib/VNDB/Handler/Staff.pm')
-rw-r--r--lib/VNDB/Handler/Staff.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Staff.pm b/lib/VNDB/Handler/Staff.pm
index 09d74930..0f878ca6 100644
--- a/lib/VNDB/Handler/Staff.pm
+++ b/lib/VNDB/Handler/Staff.pm
@@ -184,7 +184,7 @@ sub edit {
return $self->resNotFound if $sid && !$s->{id};
$rev = undef if !$s || $s->{lastrev};
- return $self->htmlDenied if !$self->authCan('staffedit')
+ return $self->htmlDenied if !$self->authCan('edit')
|| $sid && (($s->{locked} || $s->{hidden}) && !$self->authCan('dbmod'));
my %b4 = !$sid ? () : (