opendiscussion: don't allow editing discussionpage if discussion is disabled
parent
ad26978d5a
commit
6e962a2d74
|
@ -25,7 +25,7 @@ sub canedit ($$) {
|
|||
my $cgi=shift;
|
||||
my $session=shift;
|
||||
|
||||
return "" if $page=~/(\/|^)\Q$config{discussionpage}\E$/i;
|
||||
return "" if $config{discussion} && $page=~/(\/|^)\Q$config{discussionpage}\E$/i;
|
||||
return "" if pagespec_match($page, "postcomment(*)");
|
||||
return undef;
|
||||
}
|
||||
|
|
|
@ -4,3 +4,5 @@ the `discussionpage` setting to be edited anonymously, even if
|
|||
|
||||
(If it respected the `discussion` option, the combination of
|
||||
`opendiscussion` and `moderatedcomments` might be good for blogs.)
|
||||
|
||||
[[done]] --[[smcv]]
|
||||
|
|
Loading…
Reference in New Issue