diff options
author | Johannes Leuker <j.leuker@hosting.de> | 2021-04-15 19:02:39 +0300 |
---|---|---|
committer | Johannes Leuker <j.leuker@hosting.de> | 2021-05-25 12:29:32 +0300 |
commit | d606799ee2b3a6e11e616cd5606901754aa70c93 (patch) | |
tree | 5dd771f5f6991a7296b0e8dc60d2745ed0a7549f /lib/private/SystemTag | |
parent | f031dd61c14a093effeb5773323f578abd65d54f (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.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; + } + } } |