diff options
author | Simon McVittie <smcv@debian.org> | 2013-01-02 18:05:33 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2013-01-02 18:05:33 +0000 |
commit | 6e962a2d747bd8a8bbbdfc5b8eaeb689100c0b1c (patch) | |
tree | 2287d404a62e628ed8e61221a0b7d8a521e23e8a /IkiWiki/Plugin | |
parent | ad26978d5acec2103c5da5c89dcb86f044ce499e (diff) | |
download | ikiwiki-6e962a2d747bd8a8bbbdfc5b8eaeb689100c0b1c.tar ikiwiki-6e962a2d747bd8a8bbbdfc5b8eaeb689100c0b1c.tar.gz |
opendiscussion: don't allow editing discussionpage if discussion is disabled
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/opendiscussion.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/opendiscussion.pm b/IkiWiki/Plugin/opendiscussion.pm index 2805f60ef..808d3cd2b 100644 --- a/IkiWiki/Plugin/opendiscussion.pm +++ b/IkiWiki/Plugin/opendiscussion.pm @@ -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; } |