summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-04-28 09:56:57 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-04-28 09:56:57 +0200
commit9e7f7ba7f6402a36c99e662f3596b009767e2c9c (patch)
tree50bdad669901e55f7748c9f78d74e4aed174f2d8
parent3fb7de2dfb5099e4acb4f19b3038fb7acb5321c1 (diff)
downloadnextcloud-server-9e7f7ba7f6402a36c99e662f3596b009767e2c9c.tar.gz
nextcloud-server-9e7f7ba7f6402a36c99e662f3596b009767e2c9c.zip
Add sharing types for guests
Fixes https://github.com/nextcloud/guests/issues/4 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
-rw-r--r--core/js/share.js1
-rw-r--r--lib/private/Share/Constants.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 262d0a5d166..194eba5fbd4 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 1eb5b1e078b..95480975da5 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;