Impactanalyse
Dit betekent dat de gebruikersprofiel geen groepen bevat in de vorm van `GROUP_site_${site.id}_${site.role}`, bijvoorbeeld 'GROUP_site_tezza_SiteManager'.
In plaats daarvan, bevat de gebruikersprofiel 'sites'.
Alle evaluators die deze groepen gebruiken moeten herschreven worden om sites te gebruiken, bijvoorbeeld
export const isBeheerder = (context: RuleContext): boolean => hasProfile(context) && !!context.profile.groups.find((group) => group['id'] === 'GROUP_site_tezza_SiteManager');
wordt
export const isBeheerder = (context: RuleContext & { profile: ExtendedProfileState }): boolean =>
hasProfile(context) && context.profile.sites?.find((site) => site.id === 'tezza')?.role === 'SiteManager';
Deze groepen worden ook gebruikt met evaluator "app.user.groups.includeSome", evaluator "user.sites.includeSome" is aangemaakt om deze use-case te ondersteunen.
Alle rules die "app.user.groups.includeSome" gebruiken met site-groepen moeten herschreven worden om "user.sites.includeSome" te gebruiken, bijvoorbeeld
{
"value": "app.user.groups.includeSome",
"parameters": ["GROUP_site_tezza_SiteManager"]
}
wordt
{
"value": "user.sites.includeSome",
"parameters": [
{
"id": "tezza",
"roles": ["SiteManager"]
}
]
}
en een combinatie van een 'gewone' groep en een sitegroep zoals
{
"value": "app.user.groups.includeSome",
"parameters": ["GROUP_ALFRESCO_ADMINISTRATORS", "GROUP_site_tezza_SiteManager", "GROUP_site_tezza_SiteContributor"]
}
wordt
{
"value": "core.some",
"parameters": [
{
"value": "app.user.groups.includeSome",
"parameters": ["GROUP_ALFRESCO_ADMINISTRATORS"]
},
{
"value": "user.sites.includeSome",
"parameters": [
{
"id": "tezza",
"roles": ["SiteManager", "SiteContributor"]
}
]
}
]
}
Om consequent te zijn met de benaming van siterollen worden alle rollen in zaaktypesites evaluators ook aangepast, bijvoorbeeld: "Manager" -> "SiteManager" en zo voort.
Het refactoren van de permissions gebaseerd op werkmaptype sites heeft impact op:
navbar
can claim
can assign
can create file
can create folder
zaak dialog form
rollen create
rollen delete
In contezza-integration-tests branch test/#34565 zijn de relevante tests gemarkeerd met tag @34565 en kunnen uitgevoerd worden met commando
mvn clean test -Dfilter="@34565" -Denv="dev"
Deze tests zijn:
Feature: Conditional visibility of navbar items in Tezza based on user role and site memberships.
Scenario: allen.
Feature: Check permissions based on zaaktype sites in Tezza as admin user
Scenario: allen.
Feature: Verify permissions by zaaktype sites for Tezza users in CREATE_ZAKEN group with site access.
Scenario: allen.
Feature: Verify permissions in Tezza for a user in the CREATE_ZAKEN group with only Consumer access in all zaaktype sites.
Scenario: allen.
Feature: Verify Tezza permissions for a user with Contributor role in the Tezza site (e.g., POSTINTAKE group)
Scenario: allen.
Feature: Check permissions based on zaaktype sites in Tezza as user with site memberships.
Scenario: allen.
Feature: Test that the availability of actions in dialog 'Betrokkenen beheren' / 'Assignees' is correct
Scenario: All actions in dialog 'Betrokkenen beheren' / 'Assignees' are available for admin
Scenario: No action in dialog 'Betrokkenen beheren' / 'Assignees' is available for contributor
Scenario: All actions in dialog 'Betrokkenen beheren' / 'Assignees' are available for collaborator
Scenario: All actions in dialog 'Betrokkenen beheren' / 'Assignees' are available for behandelaar
Feature: Test that the availability of actions in the zaak betrokkenen tab is correct
Scenario: All actions in the zaak betrokkenen tab are available for admin
Scenario: No action in the zaak betrokkenen tab is available for contributor
Scenario: All actions in the zaak betrokkenen tab are available for collaborator
Scenario: All actions in the zaak betrokkenen tab are available for behandelaar
Feature: Test that the availability of floating-button actions in the zaak documents tab is correct
Scenario: All floating-button actions in the zaak documents tab are available for admin
Scenario: Limited floating-button actions in the zaak documents tab are available for admin in a zaak with a strict template
Scenario: No floating-button action in the zaak documents tab is available for contributor
Scenario: All floating-button actions in the zaak documents tab are available for collaborator
Scenario: Limited floating-button actions in the zaak documents tab are available for collaborator in a zaak with a strict template
Scenario: All floating-button actions in the zaak documents tab are available for behandelaar
Scenario: Limited floating-button actions in the zaak documents tab are available for behandelaar in a zaak with a strict template
Resultaat:

Let op: de beschikbaarheid van claimen/toekennen action vanuit zaak details wordt hiermee niet getest (wel vanuit zaken bibliotheek). Graag dit handmatig testen. Hiervoor moet de pagina ververst worden binnen zaak details (niet hiernaartoe navigeren).