mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
BUGFIX Added SecurityToken to PageCommentInterface->DeleteAllLink() (fixes #6223, thanks Pigeon)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@114195 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
3ba6e70540
commit
7428010748
@ -254,7 +254,8 @@ class PageCommentInterface extends RequestHandler {
|
|||||||
*/
|
*/
|
||||||
function DeleteAllLink() {
|
function DeleteAllLink() {
|
||||||
if(Permission::check('CMS_ACCESS_CommentAdmin')) {
|
if(Permission::check('CMS_ACCESS_CommentAdmin')) {
|
||||||
return Director::absoluteBaseURL() . "PageComment/deleteallcomments?pageid=" . $this->page->ID;
|
$token = SecurityToken::inst();
|
||||||
|
return $token->addToUrl(Director::absoluteBaseURL() . "PageComment/deleteallcomments?pageid=" . $this->page->ID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user