3 declare(strict_types=1);
53 return $this->
isSystemAdmin() || $this->handler->checkAccessOfUser($this->usr->getId(), $operation,
'', $this->iass->getRefId(),
'iass');
62 if ($operation ==
"read_learning_progress") {
63 return $this->handler->checkRbacOrPositionPermissionAccess(
64 "read_learning_progress",
65 "read_learning_progress",
66 $this->iass->getRefId()
70 if ($operation ==
"edit_learning_progress") {
71 return $this->handler->checkRbacOrPositionPermissionAccess(
72 "edit_learning_progress",
73 "write_learning_progress",
74 $this->iass->getRefId()
78 throw new \LogicException(
"Unknown rbac/position-operation: $operation");
88 "Admin of iass obj_no." . $iass->
getId(),
114 return self::DEFAULT_ROLE .
'_' . $iass->
getRefId();
122 return current($this->review->getLocalRoles($iass->
getRefId()));
172 $this->handler->filterUserIdsByRbacOrPositionOfCurrentUser(
173 "edit_learning_progress",
174 "write_learning_progress",
175 $this->iass->getRefId(),
186 $this->handler->filterUserIdsByRbacOrPositionOfCurrentUser(
187 "read_learning_progress",
188 "read_learning_progress",
189 $this->iass->getRefId(),
202 return $this->review->isAssigned($this->usr->getId(),
SYSTEM_ROLE_ID);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
assignUserToMemberRole(ilObjUser $usr, ilObjIndividualAssessment $iass)
Assign a user to the member role at an Individual assessment.
checkRBACOrPositionAccessToObj(string $operation)
mayGradeUser(int $user_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static createDefaultRole(string $a_title, string $a_description, string $a_tpl_name, int $a_ref_id)
ilObjIndividualAssessment $iass
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilObjIndividualAssessment $iass, ilAccessHandler $handler, ilRbacAdmin $admin, ilRbacReview $review, ilObjUser $usr)
checkRBACAccessToObj(string $operation)
initDefaultRolesForObject(ilObjIndividualAssessment $iass)
Create default roles at an object.
deassignUserFromMemberRole(ilObjUser $usr, ilObjIndividualAssessment $iass)
Deasign a user from the member role at an Individual assessment.
getRoleTitleByObj(ilObjIndividualAssessment $iass)
Class ilRbacAdmin Core functions for role based access control.
getMemberRoleIdForObj(ilObjIndividualAssessment $iass)
mayViewUser(int $user_id)