Skip to content

Group permission presets are forcefully applied. #1039

@Davis8483

Description

@Davis8483

Describe the bug
When trying to edit the permissions for any group, the preset for that group type is forcefully applied, and the settings I've changed are not honored. When this occurs, a change comment is requested when saving.

This only occurs when switching between groups. If I force reload the page, the settings I change are correctly saved, and this bug does not occur. In this case, when the save button is pressed, a change comment is not requested.

To Reproduce
Steps to reproduce the behavior:

  1. Go to System -> Groups
  2. Click on any group
  3. Attempt to change some of the permissions
  4. Save changes and enter the required comment
  5. Observe that none of the changes have been saved; a message appears as well, saying the preset has been loaded
Image

Expected behavior
Changes should be saved, and the change comment should be prompted. The permission preset should not be loaded.

Server Side

  • Part-DB Version: Part-DB 2.0.2
  • PHP Version: 8.2.29 (SAPI: apache2handler)
  • Database Server: sqlite 3.40.1

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser: Zen
  • Version: 1.15.5b (Firefox 142.0.1) (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions