From 34385ad9cec4b10fcb20100c359ac67aa4e31029 Mon Sep 17 00:00:00 2001 From: cdujeu Date: Tue, 28 Oct 2014 09:32:22 +0100 Subject: [PATCH] Add user / group identifier in listing - Close #479 --- .../access.ajxp_conf/class.ajxp_confAccessDriver.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php b/core/src/plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php index 0dff8edc0d..e6e0ee7d8c 100644 --- a/core/src/plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php +++ b/core/src/plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php @@ -1823,6 +1823,7 @@ public function listUsers($root, $child, $hashValue = null, $returnNodes = false $allNodes = array(); $columns = ' + @@ -1830,6 +1831,7 @@ public function listUsers($root, $child, $hashValue = null, $returnNodes = false if (AuthService::driverSupportsAuthSchemes()) { $columns = ' + @@ -1859,7 +1861,8 @@ public function listUsers($root, $child, $hashValue = null, $returnNodes = false $nodeKey = "/data/".$root."/".ltrim($groupId,"/"); $meta = array( "icon" => "users-folder.png", - "ajxp_mime" => "group" + "ajxp_mime" => "group", + "object_id" => $groupId ); if(in_array($nodeKey, $this->currentBookmarks)) $meta = array_merge($meta, array("ajxp_bookmarked" => "true", "overlay_icon" => "bookmark.png")); $xml = AJXP_XMLWriter::renderNode($nodeKey, @@ -1915,6 +1918,7 @@ public function listUsers($root, $child, $hashValue = null, $returnNodes = false $meta = array( "isAdmin" => $mess[($isAdmin?"ajxp_conf.14":"ajxp_conf.15")], "icon" => $icon.".png", + "object_id" => $userId, "auth_scheme" => ($scheme != null? $scheme : ""), "rights_summary" => $rightsString, "ajxp_roles" => implode(", ", $roles),