diff options
Diffstat (limited to 'webapp/utils/file_utils.jsx')
-rw-r--r-- | webapp/utils/file_utils.jsx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/webapp/utils/file_utils.jsx b/webapp/utils/file_utils.jsx deleted file mode 100644 index 42feb11be..000000000 --- a/webapp/utils/file_utils.jsx +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import * as UserAgent from 'utils/user_agent'; - -export function canUploadFiles() { - if (window.mm_config.EnableFileAttachments === 'false') { - return false; - } - - if (UserAgent.isMobileApp() && window.mm_license.IsLicensed === 'true' && window.mm_license.Compliance === 'true') { - return window.mm_config.EnableMobileFileUpload !== 'false'; - } - - return true; -} - -export function canDownloadFiles() { - if (UserAgent.isMobileApp() && window.mm_license.IsLicensed === 'true' && window.mm_license.Compliance === 'true') { - return window.mm_config.EnableMobileFileDownload !== 'false'; - } - - return true; -} |