+2006-11-23 Wolfgang Sourdeau <WSourdeau@Inverse.CA>
+
+ * SoObjects/SoProductClassInfo.m: enable the use of arrays in the
+ declaration of default roles for a permission in product.plist files
+ (v4.5.257)
+
2006-11-14 Helge Hess <helge.hess@opengroupware.org>
* WEClientCapabilities.m: added Sunbird as a known user-agent
perms = [self->roleInfo keyEnumerator];
while ((perm = [perms nextObject]) != nil) {
- NSString *role = [self->roleInfo objectForKey:perm];
+ id role = [self->roleInfo objectForKey:perm];
- [_security declareRole:role asDefaultForPermission:perm];
+ if ([role isKindOfClass:[NSArray class]])
+ [_security declareRoles:role asDefaultForPermission:perm];
+ else if ([role isKindOfClass:[NSString class]])
+ [_security declareRole:role asDefaultForPermission:perm];
+ else {
+ [self warnWithFormat:
+ @"unexpected 'role' value (expect string or array): %@", role];
+ }
}
}
}