From: helge Date: Fri, 15 Jul 2005 08:04:17 +0000 (+0000) Subject: fixed a perm parsing bug X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db1c2674fd9266ebd434a8bee4d089ceab1a8334;p=scalable-opengroupware.org fixed a perm parsing bug git-svn-id: http://svn.opengroupware.org/SOGo/trunk@772 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOGo/SoObjects/Mailer/ChangeLog b/SOGo/SoObjects/Mailer/ChangeLog index b75a01c9..58cda747 100644 --- a/SOGo/SoObjects/Mailer/ChangeLog +++ b/SOGo/SoObjects/Mailer/ChangeLog @@ -1,3 +1,7 @@ +2005-07-15 Helge Hess + + * SOGoMailFolder.m: fixed a stupid bug in permission parsing (v0.9.106) + 2005-07-15 Helge Hess * SOGoMailFolder.m: added support for more Cyrus permission flags diff --git a/SOGo/SoObjects/Mailer/SOGoMailFolder.m b/SOGo/SoObjects/Mailer/SOGoMailFolder.m index 55336552..38e4de4e 100644 --- a/SOGo/SoObjects/Mailer/SOGoMailFolder.m +++ b/SOGo/SoObjects/Mailer/SOGoMailFolder.m @@ -121,15 +121,24 @@ self->somfFlags.didCheckMyRights = 1; + /* reset flags */ + self->somfFlags.isDeleteAndExpungeAllowed = 0; + self->somfFlags.isReadAllowed = 0; + self->somfFlags.isWriteAllowed = 0; + self->somfFlags.isInsertAllowed = 0; + self->somfFlags.isPostAllowed = 0; + self->somfFlags.isCreateAllowed = 0; + self->somfFlags.hasAdminAccess = 0; + for (i = 0, len = [rights length]; i < len; i++) { switch ([rights characterAtIndex:i]) { - case 'd': self->somfFlags.isDeleteAndExpungeAllowed = 1; - case 'r': self->somfFlags.isReadAllowed = 1; - case 'w': self->somfFlags.isWriteAllowed = 1; - case 'i': self->somfFlags.isInsertAllowed = 1; - case 'p': self->somfFlags.isPostAllowed = 1; - case 'c': self->somfFlags.isCreateAllowed = 1; - case 'a': self->somfFlags.hasAdminAccess = 1; + case 'd': self->somfFlags.isDeleteAndExpungeAllowed = 1; break; + case 'r': self->somfFlags.isReadAllowed = 1; break; + case 'w': self->somfFlags.isWriteAllowed = 1; break; + case 'i': self->somfFlags.isInsertAllowed = 1; break; + case 'p': self->somfFlags.isPostAllowed = 1; break; + case 'c': self->somfFlags.isCreateAllowed = 1; break; + case 'a': self->somfFlags.hasAdminAccess = 1; break; } } } diff --git a/SOGo/SoObjects/Mailer/Version b/SOGo/SoObjects/Mailer/Version index 8aee7a07..ab4f6814 100644 --- a/SOGo/SoObjects/Mailer/Version +++ b/SOGo/SoObjects/Mailer/Version @@ -1,6 +1,6 @@ # Version file -SUBMINOR_VERSION:=105 +SUBMINOR_VERSION:=106 # v0.9.96 requires libNGMime v4.5.223 # v0.9.91 requires libNGMime v4.5.222