Browse Source

More updates for disabledFields -> unlockedFields.

mark_story 15 years ago
parent
commit
878b854be0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/Cake/Controller/Component/SecurityComponent.php

+ 2 - 2
lib/Cake/Controller/Component/SecurityComponent.php

@@ -500,7 +500,7 @@ class SecurityComponent extends Component {
 			'key' => $authKey,
 			'allowedControllers' => $this->allowedControllers,
 			'allowedActions' => $this->allowedActions,
-			'disabledFields' => $this->disabledFields,
+			'unlockedFields' => array_merge($this->disabledFields, $this->unlockedFields),
 			'csrfTokens' => array()
 		);
 
@@ -521,7 +521,7 @@ class SecurityComponent extends Component {
 		$this->Session->write('_Token', $token);
 		$controller->request->params['_Token'] = array(
 			'key' => $token['key'],
-			'disabledFields' => $token['disabledFields']
+			'unlockedFields' => $token['unlockedFields']
 		);
 		return true;
 	}