[Tickets #6333] Permissions with fromt/to - backend hook
bugs at horde.org
bugs at horde.org
Wed Feb 27 23:52:19 UTC 2008
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=6333
-----------------------------------------------------------------------
Ticket | 6333
Created By | grahamcw at hurleybulldogs.com
Summary | Permissions with fromt/to - backend hook
Queue | Kronolith
Version | HEAD
Type | Bug
State | Unconfirmed
Priority | 1. Low
Milestone |
Patch |
Owners |
-----------------------------------------------------------------------
grahamcw at hurleybulldogs.com (2008-02-27 18:52) wrote:
>From Calendar
Select Manage calendars from right expando-manu
Select change permissions icon on right of an existing calender
In Permission window
Enter Bob in individual users input area and select all options except
delegate
Push Save Calender Submit button
No w enter John in individual users input area and select all options
except delegate
Push Save Calendar Submit botton
it will return Individual user list
Bob
bob at hurleybulldogs.com
John
Enter Jim in individuall users input area and select all options except
delegate
Push Save Calendar Submit botton
it will return individual user list
Bob
Bob at hurleybulldogs.com@hurleybulldogs.com
John
John at hurleybulldogs.com
Jim
Now de-select all permission options under individual Users - deleting
them
Push Save Calendar Submit botton
it will return the list
Bob
John
Jim
--------------------------
Here are the hooks
if (!function_exists('_username_hook_tobackend')) {
function _username_hook_tobackend($userID)
{
$vdomain = '@hurleybulldogs.com';
if (substr($userID, -strlen($vdomain)) == $vdomain) {
$userID = substr($userID, 0, -strlen($vdomain));
}
return String::lower($userID);
}
}
if (!function_exists('_username_hook_frombackend')) {
function _username_hook_frombackend($userID)
{
$vdomain = 'hurleybulldogs.com';
return String::lower($userID) . '@' . $vdomain;
}
}
More information about the bugs
mailing list