Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@liunaijie
Copy link
Contributor

@liunaijie liunaijie commented Oct 20, 2025

Purpose of the pull request

bug fix.

When updating the role menu, there is a bug in the current logic.
The correct process should be: first check if there are any rules associated with the current role_id. If such rules exist, we should delete all rules linked to this role_id.
However, the current logic deletes rules by menu_id, which ends up removing rules belonging to other roles as well.

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

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.

1 participant