Summary | Group_hooks class updates |
Queue | Horde Framework Packages |
Type | Enhancement |
State | No Feedback |
Priority | 2. Medium |
Owners | |
Requester | erudd (at) netfor (dot) com |
Created | 04/07/2005 (7435 days ago) |
Due | |
Updated | 11/09/2008 (6123 days ago) |
Assigned | |
Resolved | 11/09/2008 (6123 days ago) |
Milestone | |
Patch | No |
State ⇒ Stalled
patches we'll un-stall it and look at them. Thanks!
update them in the next few weeks. So keep the ticket open.
State ⇒ Feedback
update your patch, and make sure the Joel's ideas are covered too?
names) except I also ifx the bug in the getGroupMemberships function
where you need to return the group ID as the key in the return array.
State ⇒ Accepted
New Attachment: group.hooks.diff
Zitat von Joel Vandal <jvandal@infoteck.qc.ca>:
Priority ⇒ 2. Medium
Type ⇒ Enhancement
Summary ⇒ Group_hooks class updates
Queue ⇒ Horde Framework Packages
New Attachment: group_hooks.diff
State ⇒ New
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