aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-05-14 20:23:00 -0700
committerzotlabs <mike@macgirvin.com>2018-05-14 20:23:00 -0700
commit959667c009ece0d67945ad09774c2bd091ba1450 (patch)
treeb855906e86a444a3b64875c70e0e259e6377fbd3
parent46152cc56b84538df9ba80621d70367112819819 (diff)
downloadvolse-hubzilla-959667c009ece0d67945ad09774c2bd091ba1450.tar.gz
volse-hubzilla-959667c009ece0d67945ad09774c2bd091ba1450.tar.bz2
volse-hubzilla-959667c009ece0d67945ad09774c2bd091ba1450.zip
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.
-rw-r--r--Zotlabs/Access/PermissionRoles.php2
1 files changed, 2 insertions, 0 deletions
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;
}