From f18004628326ae2451da3addfed31dff974d6094 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 16 Jan 2025 14:10:46 +0900 Subject: [PATCH] ACL Login unit detail info update, deprecated message fix --- src/ACL/Login.php | 2 ++ src/Admin/Backend.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ACL/Login.php b/src/ACL/Login.php index 0b6c55a..b84a733 100644 --- a/src/ACL/Login.php +++ b/src/ACL/Login.php @@ -1552,8 +1552,10 @@ class Login $this->acl['unit_legacy'][$unit['id']] = $this->acl['unit'][$ea_cuid]; // detail name/level set $this->acl['unit_detail'][$ea_cuid] = [ + 'id' => $unit['id'], 'name' => $unit['name'], 'uid' => $unit['uid'], + 'cuuid' => $unit['cuuid'], 'level' => $this->default_acl_list[$this->acl['unit'][$ea_cuid]]['name'] ?? -1, 'default' => $unit['default'], 'data' => $unit['data'], diff --git a/src/Admin/Backend.php b/src/Admin/Backend.php index 04e084f..cd64e2e 100644 --- a/src/Admin/Backend.php +++ b/src/Admin/Backend.php @@ -289,7 +289,7 @@ class Backend * JSON, STRING/SERIEAL, BINARY/BZIP or ZLIB * @param string|null $db_schema [default=null] override target schema * @return void - * @deprecated Use $login->writeLog() and set action_set from ->adbGetActionSet() + * @deprecated Use $login->writeLog($event, $data, action_set:$cms->adbGetActionSet(), write_type:$write_type) */ public function adbEditLog( string $event = '',