Issue:
refactor: remove permissions from files and forex apis

Resolution:
<think>
PR Context:
- Title: refactor(permissions): Remove permissions for utility APIs
- Merged: 2024-02-21T07:34:49Z
- Files changed: 18 files
- Commits: 6 commits

Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
<!-- Describe your changes in detail -->
This PR will remove permissions for Files and Forex apis.
It also adds `find_role_by_role_id_in_merchant_scope` db function.

### 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:** refactor(permissions): Remove permissions for utility APIs (#3730)
Co-authored-by: hyperswitch-bot[b
Files to modify:


**crates/api_models/src/user_role.rs**
  Modify existing code

**crates/common_enums/src/enums.rs**
  Add:
    - enum: pub::RoleScope
    - enum: pub::PermissionGroup

**crates/diesel_models/src/enums.rs**
  Remove:
    - enum: pub::RoleScope
    - enum: pub::PermissionGroup

**crates/diesel_models/src/query/role.rs**
  Add:
    - function: pub::find_by_role_id_in_merchant_scope

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

**crates/router/src/core/user/dashboard_metadata.rs**
  Modify existing code

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

**crates/router/src/db/kafka_store.rs**
  Add:
    - function: private::find_role_by_role_id_in_merchant_scope

**crates/router/src/db/role.rs**
  Add:
    - function: private::find_role_by_role_id_in_merchant_scope
    - function: private::find_role_by_role_id_in_merchant_scope

**crates/router/src/routes/currency.rs**
  Modify existing code

**crates/router/src/routes/files.rs**
  Modify existing code

**crates/router/src/services/authentication.rs**
  Add:
    - function: private::authenticate_and_fetch
    - impl: impl AuthenticateAndFetch<AuthenticationData, A> for DashboardNoPermissionAuth

**crates/router/src/services/authorization/info.rs**
  Modify existing code

**crates/router/src/services/authorization/permissions.rs**
  Modify existing code

**crates/router/src/services/authorization/predefined_permissions.rs**
  Modify existing code

**crates/router/src/types/domain/user.rs**
  Modify existing code

**crates/router/src/utils/user.rs**
  Modify existing code

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