6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/15/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#1715] Group_hooks class updates
*
Your Email Address
*
Spam protection
Enter the letters below:
..__ \ /. ..__. || \ >< |__|| | \__||__// \| ||__|
Comment
> Attached is a diff off of the horde 3.0.4 Horde/Group/hooks.php that > adds 3 new hooks and fixes (as much as possible) the > getGroupMemberships function. > > > > _group_hook function takes $user and $group > > is a better replacement for the _group_hook_GroupName hooks. part of > the reasons are explained in the patch itself (due to limitations of > php).. The other reason is it's easier for a dynamic list of groups > (ie pulling in ldap groups). > > > > _group_members_hook takes $group > > This hook will return an array of all the users in a group (merged > with the datatree group list). AFACT this would anly be userful for > seeing the groups in the group list. > > > > _group_memberships_hook takes $user > > This hook is the second half of the replacement for the > _group_hook_GroupName and returns a list of groups that a user > belongs to (flat array with :'s in the group names). > > > > > > There are several fixes to the class as well, the getGroupMemberships > function requires an index array of groupnames in the form of > > groupID => 'groupname' > > > > so my _group_memberships_hook addon correctly returns the same > "style" infomation as the getGroupMemberships function in the > datatree version. I also patched the _group_hook_GroupName loop to > place the groupID in the return array as well, otherwise the user > would not have the correct rights > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers