Skip to content

Require settings permission when saving module settings - #39

Merged
Seiger merged 1 commit into
Seiger:1.xfrom
MiddleSokilAI:sokil/fix-settings-save-permission
Nov 17, 2026
Merged

Seiger merged 1 commit into
Seiger:1.xfrom
MiddleSokilAI:sokil/fix-settings-save-permission

Conversation

@MiddleSokilAI

Copy link
Copy Markdown
Contributor

Problem

The settings page requires the Evolution CMS settings permission. The save action needs the same permission check.

What changed

Check the permission in module/sCommerceModule.php before applying any settings changes. The manager route returns HTTP 403 when the permission is missing.

Verification

On Evolution CMS 3.5.9 with PHP 8.4.20, an Editor could open the module and received HTTP 403 when submitting settings. The settings file and database settings were unchanged. An administrator successfully saved a test setting and received the usual redirect.

@Seiger
Seiger merged commit 8a99a8c into Seiger:1.x Nov 17, 2026
2 checks passed
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.

2 participants