summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-06-15 22:46:04 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-07-06 21:52:51 +0200
commit66a7064db3e0318fe122c0b51c89ffb5b586ecd7 (patch)
tree6c87643b004da841d812f30384d0e96851aa72b2 /lib/public
parent4ac77f0f7ad35249d0c3221ad19b56386a9b7f63 (diff)
downloadnextcloud-server-66a7064db3e0318fe122c0b51c89ffb5b586ecd7.tar.gz
nextcloud-server-66a7064db3e0318fe122c0b51c89ffb5b586ecd7.zip
fix: include invisible tags for admins
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/SystemTag/ISystemTagManager.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/SystemTag/ISystemTagManager.php b/lib/public/SystemTag/ISystemTagManager.php
index 1cf7263b456..0f5c373c49f 100644
--- a/lib/public/SystemTag/ISystemTagManager.php
+++ b/lib/public/SystemTag/ISystemTagManager.php
@@ -38,6 +38,7 @@ interface ISystemTagManager {
* Returns the tag objects matching the given tag ids.
*
* @param array|string $tagIds id or array of unique ids of the tag to retrieve
+ * @param ?IUser $user optional user to run a visibility check against for each tag
*
* @return ISystemTag[] array of system tags with tag id as key
*
@@ -45,9 +46,9 @@ interface ISystemTagManager {
* @throws TagNotFoundException if at least one given tag ids did no exist
* The message contains a json_encoded array of the ids that could not be found
*
- * @since 9.0.0
+ * @since 9.0.0, optional parameter $user added in 28.0.0
*/
- public function getTagsByIds($tagIds): array;
+ public function getTagsByIds($tagIds, ?IUser $user = null): array;
/**
* Returns the tag object matching the given attributes.