From 959667c009ece0d67945ad09774c2bd091ba1450 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 14 May 2018 20:23:00 -0700 Subject: If somebody used hooks to create a new permission role, there was no mechanism to insert the new role into the dropdown list of roles at selection time. --- Zotlabs/Access/PermissionRoles.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Zotlabs/Access') diff --git a/Zotlabs/Access/PermissionRoles.php b/Zotlabs/Access/PermissionRoles.php index 9855a05c4..c8b4953a5 100644 --- a/Zotlabs/Access/PermissionRoles.php +++ b/Zotlabs/Access/PermissionRoles.php @@ -308,6 +308,8 @@ class PermissionRoles { ] ]; + call_hooks('list_permission_roles',$roles); + return $roles; } -- cgit v1.2.3