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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Leuker <j.leuker@hosting.de>2021-04-15 19:02:39 +0300
committerJohannes Leuker <j.leuker@hosting.de>2021-05-25 12:29:32 +0300
commitd606799ee2b3a6e11e616cd5606901754aa70c93 (patch)
tree5dd771f5f6991a7296b0e8dc60d2745ed0a7549f /lib/private/SystemTag
parentf031dd61c14a093effeb5773323f578abd65d54f (diff)
Add commands to manage tags via OCC
list, add, delete, edit Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
Diffstat (limited to 'lib/private/SystemTag')
-rw-r--r--lib/private/SystemTag/SystemTag.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/private/SystemTag/SystemTag.php b/lib/private/SystemTag/SystemTag.php
index 8a48e048d39..a33fadd9906 100644
--- a/lib/private/SystemTag/SystemTag.php
+++ b/lib/private/SystemTag/SystemTag.php
@@ -93,4 +93,19 @@ class SystemTag implements ISystemTag {
public function isUserAssignable(): bool {
return $this->userAssignable;
}
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getAccessLevel(): int {
+ if ($this->userVisible) {
+ if ($this->userAssignable) {
+ return self::ACCESS_LEVEL_PUBLIC;
+ } else {
+ return self::ACCESS_LEVEL_RESTRICTED;
+ }
+ } else {
+ return self::ACCESS_LEVEL_INVISIBLE;
+ }
+ }
}