Issue:
bug(user_roles): Restrict updating user_roles to the same entity level

Currently update user role API allows updating a merchant level user role to profile level, which should not be possible.

This comes under upgrade/downgrade functionality, which is not available yet.


Resolution:
<think>
PR Context:
- Title: fix(user_role): Restrict updating user role to the same `EntityType`
- Merged: 2024-10-07T14:44:31Z
- Files changed: 1 files
- Commits: 1 commits

Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
<!-- Describe your changes in detail -->
- Currently update user role API allows updating a merchant level user role to profile level, which should not be possible.

### Additional Changes

- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ]
</think>

To implement this, you'll need to modify:


**Detailed Implementation:**


**Commit 1:** fix(user_role): Restrict updating user role to the same `EntityType` (#6224)
Files to modify:


**crates/router/src/core/user_role.rs**
  Modify existing code