From 69d2d0178a46b72bea2d4618bbd2f42456b9e761 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 24 Aug 2017 14:55:17 +0200 Subject: Don't try the actual file upload if the checks already error out Signed-off-by: Roeland Jago Douma --- apps/files/js/filelist.js | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/files/js/filelist.js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 9bf25c5904d..79ec8e2d9f9 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2795,6 +2795,7 @@ var isCreatable = (self.getDirectoryPermissions() & OC.PERMISSION_CREATE) !== 0; if (!isCreatable) { self._showPermissionDeniedNotification(); + e.stopPropagation(); return false; } -- cgit v1.2.3