aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2021-05-25 16:54:06 +0200
committerGitHub <noreply@github.com>2021-05-25 16:54:06 +0200
commit726d01843e13529777b8a043f0ed997f1bf864dd (patch)
tree09c2ecac914e501cdb2be35e43bb8d67b1237562 /lib/private
parent0815be1ca85698bf571b8e907056274499226335 (diff)
parentd606799ee2b3a6e11e616cd5606901754aa70c93 (diff)
downloadnextcloud-server-726d01843e13529777b8a043f0ed997f1bf864dd.tar.gz
nextcloud-server-726d01843e13529777b8a043f0ed997f1bf864dd.zip
Merge pull request #26600 from hosting-de/feature/occ-tags
Add commands to manage tags via OCC
Diffstat (limited to 'lib/private')
-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;
+ }
+ }
}