]> err.no Git - scalable-opengroupware.org/commitdiff
fixed a perm parsing bug
authorhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Fri, 15 Jul 2005 08:04:17 +0000 (08:04 +0000)
committerhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Fri, 15 Jul 2005 08:04:17 +0000 (08:04 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@772 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGo/SoObjects/Mailer/ChangeLog
SOGo/SoObjects/Mailer/SOGoMailFolder.m
SOGo/SoObjects/Mailer/Version

index b75a01c99a3e7721d36dfe8ecc0f9d5b66de66bc..58cda7475de9daa8d118689d41501137edc45430 100644 (file)
@@ -1,3 +1,7 @@
+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
index 55336552e3b97323b991d05e6e3dc4bc3f7c2b6a..38e4de4ea5ccb71845779716cae1543f246b8632 100644 (file)
   
   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;
     }
   }
 }
index 8aee7a07906413464b0613f4f4d2d3e574b41714..ab4f68146e145f2287e6766d14bda932ac626fcd 100644 (file)
@@ -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