]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add delete permissions to the default (new in oc9.1)
authorJoas Schilling <coding@schilljs.com>
Thu, 14 Jul 2016 08:25:24 +0000 (10:25 +0200)
committerJoas Schilling <coding@schilljs.com>
Thu, 14 Jul 2016 08:25:24 +0000 (10:25 +0200)
core/js/sharedialoglinkshareview.js

index ff83b40e0a04f765779383702e9beee60ab62c5f..cb0549ed09371526b0bce1816d3bcfb84911e5f4 100644 (file)
                        var $checkbox = this.$('.hideFileListCheckbox');
                        $checkbox.siblings('.icon-loading-small').removeClass('hidden').addClass('inlineblock');
 
-                       var permissions = OC.PERMISSION_UPDATE | OC.PERMISSION_CREATE | OC.PERMISSION_READ;
+                       var permissions = OC.PERMISSION_UPDATE | OC.PERMISSION_CREATE | OC.PERMISSION_READ | OC.PERMISSION_DELETE;
                        if ($checkbox.is(':checked')) {
                                permissions = OC.PERMISSION_UPDATE | OC.PERMISSION_CREATE;
                        }