Skip to content

Commit 63098a1

Browse files
fix(meta-data): set/update share meta-data on create/update
Assisted-by: Claude Code:claude-sonnet-4-6 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent 157cce2 commit 63098a1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/Service/BoardService.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ public function addAcl(int $boardId, int $type, $participant, bool $edit, bool $
400400
$acl->setPermissionEdit($edit);
401401
$acl->setPermissionShare($share);
402402
$acl->setPermissionManage($manage);
403+
$now = time();
404+
$acl->setCreatedAt($now);
405+
$acl->setLastModifiedAt($now);
403406
$newAcl = $this->aclMapper->insert($acl);
404407

405408
$this->activityManager->triggerEvent(ActivityManager::DECK_OBJECT_BOARD, $newAcl, ActivityManager::SUBJECT_BOARD_SHARE, [], $this->userId);
@@ -451,6 +454,7 @@ public function updateAcl(int $id, bool $edit, bool $share, bool $manage): Acl {
451454
$acl->setPermissionEdit($edit);
452455
$acl->setPermissionShare($share);
453456
$acl->setPermissionManage($manage);
457+
$acl->setLastModifiedAt(time());
454458
$this->boardMapper->mapAcl($acl);
455459
$acl = $this->aclMapper->update($acl);
456460
$this->changeHelper->boardChanged($acl->getBoardId());

0 commit comments

Comments
 (0)