Selective Sync fixes
[pithos-ms-client] / trunk / Pithos.Core / Agents / Downloader.cs
index 68b33c6..8e3416c 100644 (file)
@@ -99,7 +99,7 @@ namespace Pithos.Core.Agents
                                     DownloadWithBlocks(accountInfo, client, cloudFile, relativeUrl, localPath,
                                                        serverHash);
 
-                            if (cloudFile.AllowedTo == "read")
+                            if (!cloudFile.IsWritable(accountInfo.UserName))
                             {
                                 var attributes = File.GetAttributes(localPath);
                                 File.SetAttributes(localPath, attributes | FileAttributes.ReadOnly);