summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-02-20 09:39:11 +0100
committerYorhel <git@yorhel.nl>2021-02-20 09:39:11 +0100
commitdec161278ba7dd1a868a3d81be1db2f4c77bbdfc (patch)
tree3bd51ff4ce06930787e9845896647b3ef38b4ad2
parent8a1b27b019254789e84dd96b8f5381e335a10c3c (diff)
Disallow tag creation when banned
-rw-r--r--lib/VNWeb/Validation.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Validation.pm b/lib/VNWeb/Validation.pm
index 5836d001..ec271841 100644
--- a/lib/VNWeb/Validation.pm
+++ b/lib/VNWeb/Validation.pm
@@ -240,7 +240,7 @@ sub can_edit {
}
if($type eq 'g' || $type eq 'i') {
- return auth && (auth->permTagmod || !$entry->{id});
+ return auth->permEdit && (auth->permTagmod || !$entry->{id});
}
die "Can't do authorization test when entry_hidden/entry_locked fields aren't present"