+2005-07-15 Helge Hess <helge.hess@opengroupware.org>
+
+ * SOGoMailFolder.m: fixed a stupid bug in permission parsing (v0.9.106)
+
2005-07-15 Helge Hess <helge.hess@opengroupware.org>
* SOGoMailFolder.m: added support for more Cyrus permission flags
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;
}
}
}