diff options
author | Morris Jobke <hey@morrisjobke.de> | 2021-05-25 16:54:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-25 16:54:06 +0200 |
commit | 726d01843e13529777b8a043f0ed997f1bf864dd (patch) | |
tree | 09c2ecac914e501cdb2be35e43bb8d67b1237562 /lib/private | |
parent | 0815be1ca85698bf571b8e907056274499226335 (diff) | |
parent | d606799ee2b3a6e11e616cd5606901754aa70c93 (diff) | |
download | nextcloud-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.php | 15 |
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; + } + } } |