0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-05-16 03:11:54 +00:00
nextcloud_server/apps/admin_audit/lib/Actions/TagManagement.php
greta d590373ae7 feat(admin_audit): Audit the tag creation
Co-authored-by: greta <gretadoci@gmail.com>
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: greta <gretadoci@gmail.com>
2024-08-01 11:29:14 +02:00

27 lines
662 B
PHP

<?php
declare(strict_types=1);
/*!
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\AdminAudit\Actions;
use OCP\SystemTag\ISystemTag;
class TagManagement extends Action {
/**
* @param ISystemTag $tag newly created tag
*/
public function createTag(ISystemTag $tag): void {
$this->log('System tag "%s" (%s, %s) created',
[
'name' => $tag->getName(),
'visbility' => $tag->isUserVisible() ? 'visible' : 'invisible',
'assignable' => $tag->isUserAssignable() ? 'user assignable' : 'system only',
],
['name', 'visibility', 'assignable']
);
}
}