diff options
Diffstat (limited to 'core/js/shareitemmodel.js')
-rw-r--r-- | core/js/shareitemmodel.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js index f4ac03e1c18..2349f19092f 100644 --- a/core/js/shareitemmodel.js +++ b/core/js/shareitemmodel.js @@ -457,6 +457,19 @@ }, /** + * @param shareIndex + * @returns {string} + */ + getFileOwnerUid: function(shareIndex) { + /** @type OC.Share.Types.ShareInfo **/ + var share = this.get('shares')[shareIndex]; + if(!_.isObject(share)) { + throw "Unknown Share"; + } + return share.uid_file_owner; + }, + + /** * returns the array index of a sharee for a provided shareId * * @param shareId |