Skip to content

Commit

Permalink
BUGFIX Allowing CMSMain->rollback() outside of form contexts, tempora…
Browse files Browse the repository at this point in the history
…riliy disabling CSRF protection. Necessary in order to get rollback actions working from admin/getversion (regression from 2.4.4 release, see #6291)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@115313 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu authored and Sam Minnee committed Feb 2, 2011
1 parent 6a02f2e commit 25de630
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/CMSMain.php
Expand Up @@ -51,7 +51,8 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
'SiteTreeAsUL',
'getshowdeletedsubtree',
'getfilteredsubtree',
'batchactions'
'batchactions',
'rollback', // see http://open.silverstripe.org/ticket/6291
);

/**
Expand Down

0 comments on commit 25de630

Please sign in to comment.