From fa2c3c8999a2c9251bb1431bd3982cabe08db38f Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 26 Mar 2021 16:56:19 +0100 Subject: [PATCH] role/audit: Give the privilege audit an explicit (non-protected) id --- application/controllers/RoleController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/controllers/RoleController.php b/application/controllers/RoleController.php index f3f6591f6..e4f26e68d 100644 --- a/application/controllers/RoleController.php +++ b/application/controllers/RoleController.php @@ -237,7 +237,10 @@ class RoleController extends AuthBackendController )); $this->addControl($header); - $this->addContent(new PrivilegeAudit($chosenRole !== null ? [$chosenRole] : $assignedRoles)); + $this->addContent( + (new PrivilegeAudit($chosenRole !== null ? [$chosenRole] : $assignedRoles)) + ->addAttributes(['id' => 'role/audit']) + ); } public function suggestRoleMemberAction()