Skip to content

Commit

Permalink
chore: add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfs7 committed Oct 20, 2023
1 parent 11960f1 commit a1ad44f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions model/PermissionsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public function __construct(
*/
public function applyPermissions(ChangePermissionsCommand $command): void
{
//@TODO FIXME Call ChangePermissionService::change($command);
$resources = $this->getResourcesToUpdate($command);
$currentPermissions = $this->getResourcesPermissions($resources);

Expand Down Expand Up @@ -131,6 +132,7 @@ public function savePermissions(
*/
public function getPermissionsDelta(core_kernel_classes_Resource $resource, array $permissionsToSet): array
{
//@TODO FIXME Remove this method as it is used only here and we will change to call ChangePermissionsService::chage
$currentPermissions = $this->dataBaseAccess->getResourcePermissions($resource->getUri());

return $this->strategy->normalizeRequest($currentPermissions, $permissionsToSet);
Expand Down

0 comments on commit a1ad44f

Please sign in to comment.