mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Don't send activity to non-admins when assigning invisible tags (#25192)
This commit is contained in:
parent
ef5217d6e8
commit
dcee528482
1 changed files with 4 additions and 0 deletions
|
|
@ -188,6 +188,10 @@ class Listener {
|
|||
$activity->setAffectedUser($user);
|
||||
|
||||
foreach ($tags as $tag) {
|
||||
// don't publish activity for non-admins if tag is invisible
|
||||
if (!$tag->isUserVisible() && !$this->groupManager->isAdmin($user)) {
|
||||
continue;
|
||||
}
|
||||
if ($event->getEvent() === MapperEvent::EVENT_ASSIGN) {
|
||||
$activity->setSubject(Extension::ASSIGN_TAG, [
|
||||
$actor,
|
||||
|
|
|
|||
Loading…
Reference in a new issue