Skip to content

Commit 6a5877f

Browse files
committed
EmployeeTalk: do not show delete action if position access in talks is not active (47133)
1 parent 2da27db commit 6a5877f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

components/ILIAS/EmployeeTalk/classes/Talk/class.ilObjEmployeeTalkAccess.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ public function canDelete(int $refId): bool
203203
$user = $this->getCurrentUsersId();
204204
if (
205205
$user === $talk->getOwner() &&
206-
$this->container->access()->checkAccess('read', '', ilObjTalkTemplateAdministration::getRootRefId())
206+
$this->container->access()->checkAccess('read', '', ilObjTalkTemplateAdministration::getRootRefId()) &&
207+
$this->talkPositionSettings->isActive()
207208
) {
208209
return true;
209210
}

0 commit comments

Comments
 (0)