|
@@ -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;
|