Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More updates for disabledFields -> unlockedFields.

  • Loading branch information...
commit 878b854be097c075116d60f1d6434cc0f3c5c69d 1 parent c136349
Mark Story markstory authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Controller/Component/SecurityComponent.php
4 lib/Cake/Controller/Component/SecurityComponent.php
View
@@ -500,7 +500,7 @@ protected function _generateToken($controller) {
'key' => $authKey,
'allowedControllers' => $this->allowedControllers,
'allowedActions' => $this->allowedActions,
- 'disabledFields' => $this->disabledFields,
+ 'unlockedFields' => array_merge($this->disabledFields, $this->unlockedFields),
'csrfTokens' => array()
);
@@ -521,7 +521,7 @@ protected function _generateToken($controller) {
$this->Session->write('_Token', $token);
$controller->request->params['_Token'] = array(
'key' => $token['key'],
- 'disabledFields' => $token['disabledFields']
+ 'unlockedFields' => $token['unlockedFields']
);
return true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.