6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/14/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#6287] View share of other users
*
Your Email Address
*
Spam protection
Enter the letters below:
. ..___ __ .__ . , | |[__ / `| \ \./ |/\|[___\__.|__/ |
Comment
> the usage of IMAP getacl isn't working when we are not the propietary > of a share. > > The solution is to add this functionality to the php code of kolab > with a patch developped by Diegows in the kolab installation : > http://aspn.activestate.com/ASPN/Mail/Message/php-dev/3602193 > > > > and change the following code : > > > > Replace in Horde/Share/kolab.php in function getPerm() > > // Perform the imap call > > $acl = $this->_imap->getACL($this->_folder); > > > > by > > // Perform the imap call > > // Check if the getPerm comes from the owner > > // in this case we can use getACL to have all the right of the share > > // Otherwise we just ask the right of the current user for a folder > > if ($this->_owner==Auth::getAuth()){ > > $acl = $this->_imap->getACL($this->_folder); > > }else{ > > $acl = $this->_imap->getMYRIGHTS($this->_folder); > > } > > > > And add a new function ini cclient.php (Framework/Kolab/IMAP/cclient.php) : > > /** > > * Retrieve the access rights from a folder > > * > > * @param string $folder The folder to retrieve the ACLs from. > > * > > * @return mixed An array of rights if successfull, a PEAR error > > * otherwise. > > */ > > function getMYRIGHTS($folder) > > { > > $user= Auth::getAuth(); > > $result[$user]= @imap_myrights($this->_imap, $folder); > > if (!$result) { > > return PEAR::raiseError(sprintf(_("IMAP error. Folder: > %s. Error: %s"), $folder, @imap_last_error())); > > } > > return $result; > > } > >
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