Skip to content

PES-2876, PES-2886: permissions update#365

Open
FJiskra wants to merge 25 commits intomainfrom
PES-2876_permissions-update
Open

PES-2876, PES-2886: permissions update#365
FJiskra wants to merge 25 commits intomainfrom
PES-2876_permissions-update

Conversation

@FJiskra
Copy link
Contributor

@FJiskra FJiskra commented Aug 4, 2025

No description provided.

@FJiskra FJiskra force-pushed the PES-2876_permissions-update branch from 64ded3f to c121428 Compare August 4, 2025 15:15
@zemekoule zemekoule changed the title PES-2876: permissions update PES-2876, PES-2886: permissions update Aug 5, 2025
@FJiskra FJiskra force-pushed the PES-2876_permissions-update branch from bc9c1f1 to 74d37e3 Compare August 7, 2025 13:33
…PermissionHelper for improved clarity and maintainability
@FJiskra FJiskra force-pushed the PES-2876_permissions-update branch from 74d37e3 to c09000c Compare August 7, 2025 13:45
J7F added 2 commits August 11, 2025 10:58
$tabPermissionRole = 'ROLE_MOD_TAB_' . strtoupper($section) . '_' . strtoupper($permission === 'view' ? 'READ' : 'UPDATE');
$tabRoleId = $this->findAuthorizationRoleId($tabPermissionRole);
if ($tabRoleId !== null) {
return $this->hasAccessPermission($context->employee->id_profile, $tabRoleId, self::ACCESS_TYPE_TAB);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chápu kód správně, že se nejprve kontroluje oprávnění k modulu (MOD_MODULE) a potom ke Controlleru (MOD_TAB)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ano. Je to udělané, tak aby to fungovalo.

} else {
$this->tpl_view_vars['carrierHelper'] = $carrierHelper->getHtml();
}
$this->tpl_view_vars['carrierHelper'] = $carrierHelper->getHtml();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proč je tato změna potřeba?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aby se zobrazoval obsah stránky pokud dojde k chybě.

@Karpec Karpec force-pushed the PES-2876_permissions-update branch from b7d7478 to 44ca79d Compare August 14, 2025 13:47
@Karpec Karpec force-pushed the PES-2876_permissions-update branch from 9be9100 to 76b4611 Compare August 15, 2025 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants