3 declare(strict_types=1);
43 $this->user_id = $domain->user()->getId();
44 $this->
settings = $domain->settings();
45 $this->
access = $domain->access();
61 $public_deletion_enabled =
false 68 $user_can_delete_their_comments = (bool) $settings->get(
"comments_del_user",
'0');
69 $tutor_can_delete_comments = (bool) $settings->get(
"comments_del_tutor",
'1');
90 if ($tutor_can_delete_comments) {
92 if ($access->checkAccess(
"write",
"", $ref_id)) {
Notes internal repo service.
canDelete(Note $note, int $user_id=0, $public_deletion_enabled=false)
static _getAllReferences(int $id)
get all reference ids for object ID
InternalRepoService $repo
Repository internal data service.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
canEdit(Note $note, int $user_id=0)
InternalDomainService $domain
InternalDataService $data
__construct(InternalDataService $data, InternalRepoService $repo, InternalDomainService $domain)