6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
3/31/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#13954] Premission removing owner with horde hooks
*
Your Email Address
*
Spam protection
Enter the letters below:
.__..__..__.. . . [__][__][__]| |__| | || || ||___| |
Comment
> I use a horde hook to add the @spagi.net to the user if not specified > the function is as follow > > public function authusername($userId, $toHorde) > { > // Example #1: Append the virtual domain to the username only > if a domain is not already specified. > // ex. $HTTP_HOST = 'mail.mydomain.com', $userId = 'myname' returns: > // 'myname@mydomain.com' > // but $userId = 'myname@mydomain.com' returns self > $vdomain = preg_replace('|^mail\.|i', '', getenv('HTTP_HOST')); > $vdomain = Horde_String::lower($vdomain); > > if ($toHorde) { > if (stripos($userId, '@')){ > return $userId; > }else{ > return $userId . '@' . $vdomain; > } > } > > It works well in Ansel EXCEPT if I try to change the permission on a > gallery. Doing so will result that in the SQL table the field > share_owner will simply record as "@mydomain.com" stripping the user > and thus removing ownership of the gallery. > > On the web interface I tried specifing the owner in the box but doing > so the changes in the permission aren't recorded. So the only work > around right now is to make the change in the permission and after > that go manually in the database in ansel_shares and add the user in > front of the @domain.com
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