From d606799ee2b3a6e11e616cd5606901754aa70c93 Mon Sep 17 00:00:00 2001 From: Johannes Leuker Date: Thu, 15 Apr 2021 18:02:39 +0200 Subject: Add commands to manage tags via OCC list, add, delete, edit Signed-off-by: Johannes Leuker --- lib/private/SystemTag/SystemTag.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/private') 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; + } + } } -- cgit v1.2.3