Fix share permissions for share tab

This commit is contained in:
Vincent Petry 2015-08-24 13:15:33 +02:00
parent 018d07b3e5
commit f709022559

View file

@ -57,8 +57,7 @@
var attributes = { var attributes = {
itemType: 'file', itemType: 'file',
itemSource: this.model.get('id'), itemSource: this.model.get('id'),
// TODO: make these available possiblePermissions: this.model.get('sharePermissions')
possiblePermissions: this.model.get('sharingPossiblePermissions')
}; };
var shareModel = new OC.Share.ShareItemModel(attributes, {configModel: configModel}); var shareModel = new OC.Share.ShareItemModel(attributes, {configModel: configModel});
var configModel = new OC.Share.ShareConfigModel(); var configModel = new OC.Share.ShareConfigModel();