mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG Find Form actions in CompositeFields for access checks
This bug was introduced with the new nested CMS actions around December 2012, but wasn't noticed until now because checkAccessAction() would wrongly return TRUE before the dataFieldByName() check was reached.
This commit is contained in:
parent
7ec8ebbf9e
commit
14dcc82e76
@ -289,7 +289,7 @@ class Form extends RequestHandler {
|
|||||||
$this->controller->hasMethod($funcName)
|
$this->controller->hasMethod($funcName)
|
||||||
&& !$this->controller->checkAccessAction($funcName)
|
&& !$this->controller->checkAccessAction($funcName)
|
||||||
// If a button exists, allow it on the controller
|
// If a button exists, allow it on the controller
|
||||||
&& !$this->actions->fieldByName('action_' . $funcName)
|
&& !$this->actions->dataFieldByName('action_' . $funcName)
|
||||||
) {
|
) {
|
||||||
return $this->httpError(
|
return $this->httpError(
|
||||||
403,
|
403,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user