parent
f2ac1a80d8
commit
843cf906b1
2 changed files with 4 additions and 1 deletions
|
@ -45,6 +45,9 @@
|
|||
if (fileData.type === 'file') {
|
||||
// files can't be shared with delete permissions
|
||||
sharePermissions = sharePermissions & ~OC.PERMISSION_DELETE;
|
||||
|
||||
// create permissions don't mean anything for files
|
||||
sharePermissions = sharePermissions & ~OC.PERMISSION_CREATE;
|
||||
}
|
||||
tr.attr('data-share-permissions', sharePermissions);
|
||||
if (fileData.shareOwner) {
|
||||
|
|
|
@ -712,7 +712,7 @@ describe('OCA.Sharing.FileList tests', function() {
|
|||
$tr = fileList.$el.find('tr:first');
|
||||
|
||||
expect(parseInt($tr.attr('data-share-permissions'), 10))
|
||||
.toEqual(OC.PERMISSION_ALL - OC.PERMISSION_SHARE - OC.PERMISSION_DELETE);
|
||||
.toEqual(OC.PERMISSION_ALL - OC.PERMISSION_SHARE - OC.PERMISSION_DELETE - OC.PERMISSION_CREATE);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue