Skip to content

fix(api-aco): check security authorization while decorating cms methods#4667

Merged
leopuleo merged 1 commit intodevfrom
leo/fix/flp-without-authorization
Jul 18, 2025
Merged

fix(api-aco): check security authorization while decorating cms methods#4667
leopuleo merged 1 commit intodevfrom
leo/fix/flp-without-authorization

Conversation

@leopuleo
Copy link
Contributor

Changes

With this PR, we are disabling FLP decoration applied to CMS CRUD methods when authorisation is disabled, such as when using context.security.withoutAuthorization.

How Has This Been Tested?

Manually

@leopuleo leopuleo requested a review from Pavel910 July 15, 2025 08:31
@leopuleo leopuleo self-assigned this Jul 15, 2025
@Pavel910 Pavel910 added this to the 5.43.3 milestone Jul 15, 2025
Copy link
Contributor

@brunozoric brunozoric left a comment

Choose a reason for hiding this comment

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

Code looks ok. If the logic if (!context.security.isAuthorizationEnabled()) { is correct, everything is fine.

@leopuleo leopuleo merged commit 8be69dc into dev Jul 18, 2025
17 checks passed
@leopuleo leopuleo deleted the leo/fix/flp-without-authorization branch July 31, 2025 11:39
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