Browse Source

Use AuthComponent instead of CakeSession

Val Bancer 10 years ago
parent
commit
976bf8d47d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Model/Behavior/WhoDidItBehavior.php

+ 1 - 1
Model/Behavior/WhoDidItBehavior.php

@@ -116,7 +116,7 @@ class WhoDidItBehavior extends ModelBehavior {
 		$authSession = $config['auth_session'];
 		$authSession = $config['auth_session'];
 		list(, $userSession) = pluginSplit($config['user_model']);
 		list(, $userSession) = pluginSplit($config['user_model']);
 
 
-		$userId = AuthComponent::user($authSession . '.' . $userSession . '.id');
+		$userId = AuthComponent::user('id');
 
 
 		if (!$userId) {
 		if (!$userId) {
 			return true;
 			return true;