Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'environment')
-rw-r--r--environment/environment.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/environment/environment.php b/environment/environment.php
index a5e3a8ff..d116b60a 100644
--- a/environment/environment.php
+++ b/environment/environment.php
@@ -79,6 +79,10 @@ class Environment {
* @var string
*/
private $folderName;
+ /**
+ * @var string
+ */
+ private $shareWith;
/***
* Constructor
@@ -123,6 +127,7 @@ class Environment {
$this->folderName = $linkItem['file_target'];
$this->userId = $rootLinkItem['uid_owner'];
+ $this->shareWith = $linkItem['share_with'];
}
/**
@@ -237,6 +242,15 @@ class Environment {
}
/**
+ * Returns if the share is protected (share_with === true)
+ *
+ * @return string
+ */
+ public function isShareProtected() {
+ return $this->shareWith;
+ }
+
+ /**
* Returns the path which goes from the file, up to the user folder, based on a node:
* parent_folder/current_folder/my_file
*