mathesar
mathesar copied to clipboard
Custom Permissions Reset to Preset Access Levels
Description
When setting custom permissions that match any of the preset access levels, the UI automatically selects the preset level when the permissions modal is reopened. This behavior can be confusing if the user intended to see their custom permissions displayed, rather than the preset.
Expected behavior
If custom permissions are set, even if they match a preset, the UI should display the custom permissions view when reopened, ensuring clarity for users who specifically configured custom settings.
To Reproduce
- Open the "Database Permissions" modal.
- Set custom permissions that happen to match one of the preset access levels (e.g., "Create").
- Save the changes.
- Reopen the "Database Permissions" modal.
- The preset access level is shown instead of the custom permissions view.