From 8d3ad5f22d5e46d598b044befdacccaf009c28ea Mon Sep 17 00:00:00 2001
From: Patrick Simpson
Date: Fri, 22 Dec 2017 13:24:00 +0200
Subject: [PATCH] [KOE-124] Added capability check for whole store sharing
---
.../Features/SharedFolders/SharedFoldersManager.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/SharedFolders/SharedFoldersManager.cs b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/SharedFolders/SharedFoldersManager.cs
index e69644d..eb2c998 100644
--- a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/SharedFolders/SharedFoldersManager.cs
+++ b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/SharedFolders/SharedFoldersManager.cs
@@ -43,7 +43,7 @@ namespace Acacia.Features.SharedFolders
public bool SupportsWholeStore
{
- get { return _feature.AllowImpersonate; } // TODO: use capability
+ get { return _feature.AllowImpersonate && _account.Capabilities?.Has(Constants.ZPUSH_CAPABILITY_IMPERSONATE) == true; }
}
public FeatureSharedFolders Feature { get { return _feature; } }