comments: use comments_pagespec for authorization, not just UI
parent
6d90e56c8d
commit
ef7c80258d
|
@ -438,6 +438,16 @@ sub editcomment ($$) {
|
|||
$page));
|
||||
}
|
||||
|
||||
# There's no UI to get here, but someone might construct the URL,
|
||||
# leading to a comment that exists in the repository but isn't
|
||||
# shown
|
||||
if (!pagespec_match($page, $config{comments_pagespec},
|
||||
location => $page)) {
|
||||
error(sprintf(gettext(
|
||||
"comments on page '%s' are not allowed"),
|
||||
$page));
|
||||
}
|
||||
|
||||
if (pagespec_match($page, $config{comments_closed_pagespec},
|
||||
location => $page)) {
|
||||
error(sprintf(gettext(
|
||||
|
|
Loading…
Reference in New Issue