fix: [log] filter user logs on user_id not email

pull/8826/head
Christophe Vandeplas 2022-12-06 13:08:31 +01:00
parent bdda94529d
commit 9d51d143bb
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class LogsController extends AppController
$conditions['Log.org'] = $orgRestriction;
} else {
// users can see their own info
$conditions['Log.email'] = $this->Auth->user('email');
$conditions['Log.user_id'] = $this->Auth->user('id');
}
}
$params = array(