From 9e7f7ba7f6402a36c99e662f3596b009767e2c9c Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Fri, 28 Apr 2017 09:56:57 +0200 Subject: [PATCH] Add sharing types for guests Fixes https://github.com/nextcloud/guests/issues/4 Signed-off-by: Lukas Reschke --- core/js/share.js | 1 + lib/private/Share/Constants.php | 1 + 2 files changed, 2 insertions(+) diff --git a/core/js/share.js b/core/js/share.js index 262d0a5d16..194eba5fbd 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -10,6 +10,7 @@ OC.Share = _.extend(OC.Share || {}, { SHARE_TYPE_EMAIL:4, SHARE_TYPE_REMOTE:6, SHARE_TYPE_CIRCLE:7, + SHARE_TYPE_GUEST:8, /** * Regular expression for splitting parts of remote share owners: diff --git a/lib/private/Share/Constants.php b/lib/private/Share/Constants.php index 1eb5b1e078..95480975da 100644 --- a/lib/private/Share/Constants.php +++ b/lib/private/Share/Constants.php @@ -33,6 +33,7 @@ class Constants { const SHARE_TYPE_CONTACT = 5; // ToDo Check if it is still in use otherwise remove it const SHARE_TYPE_REMOTE = 6; const SHARE_TYPE_CIRCLE = 7; + const SHARE_TYPE_GUEST = 8; const FORMAT_NONE = -1; const FORMAT_STATUSES = -2;