From 338edba081dba2a2aefb634811be1cc84ec93d64 Mon Sep 17 00:00:00 2001 From: Avi Levkovich Date: Tue, 25 Aug 2020 10:08:01 +0300 Subject: merge --- .../Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs') diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs b/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs index b623200d8..6673a5ae3 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs @@ -554,11 +554,19 @@ namespace Tango.FSE.UI.FileSystem /// /// The local source path. /// The remote destination path. + /// Indicates whether this upload operation is performed for a remote upgrade. /// - /// Could not locate the local file or directory to upload. - public Task Upload(String localSourcePath, String remotePath) + /// Could not locate the local file or directory to upload. + public Task Upload(String localSourcePath, String remotePath, bool forRemoteUpgrade = false) { - AuthenticationProvider.ThrowIfNoPermission(Permissions.FSE_PPCFileSystemWrite); + if (!forRemoteUpgrade) + { + AuthenticationProvider.ThrowIfNoPermission(Permissions.FSE_PPCFileSystemWrite); + } + else + { + AuthenticationProvider.ThrowIfNoPermission(Permissions.FSE_RemoteUpgradeOnline); + } String operationId = String.Empty; String destination = remotePath; -- cgit v1.3.1