protected function hasPermissionForModifiedGroup($modifiedUuid, $groupUuid)
    {
        $permissions = $this->accessControlManager->getPermissionsRawForUuid($groupUuid);
        
        if ($permissions === false) {
            return false;
        }
        
        foreach ($permissions as $permission) {
            $result = $this->hasGroupLoop($permission, $modifiedUuid);
            
            if ($result === true) {
                return true;
            }
        }
    }