diff options
author | Yorhel <git@yorhel.nl> | 2020-08-18 08:09:14 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-08-18 08:09:14 +0200 |
commit | 89f1916021d64ddb0f8f3fb3fda9843515c74dee (patch) | |
tree | cc96777da9c1bcf2fa2069b8332dae0a10bd2374 /lib/VNWeb/Validation.pm | |
parent | e780ce10770eb1f91a55b5f954560b8824d6f474 (diff) |
Reviews: Also fix editing permission check
Diffstat (limited to 'lib/VNWeb/Validation.pm')
-rw-r--r-- | lib/VNWeb/Validation.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Validation.pm b/lib/VNWeb/Validation.pm index 341d3947..d40f42c6 100644 --- a/lib/VNWeb/Validation.pm +++ b/lib/VNWeb/Validation.pm @@ -207,7 +207,7 @@ sub can_edit { if($type eq 'w') { return 1 if auth->permBoardmod; return auth->permReview if !$entry->{id}; - return auth && auth->uid == $entry->{uid}; + return auth && auth->uid == $entry->{user_id}; } die "Can't do authorization test when entry_hidden/entry_locked fields aren't present" |