Skip to content

Commit 2f7d0d1

Browse files
committed
Don't render a quote link if discussion is closed
1 parent f5e7f73 commit 2f7d0d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vanilla/plugins/Quotes/class.quotes.plugin.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@ protected function addQuoteButton($sender, $args) {
264264
return;
265265
}
266266

267+
$isClosed = ((int)$discussion->Closed) == 1;
268+
if ($isClosed) {
269+
return;
270+
}
271+
267272
if (!Gdn::session()->UserID) {
268273
return;
269274
}

0 commit comments

Comments
 (0)