Satish11012007 opened a new pull request, #5561:
URL: https://github.com/apache/fineract/pull/5561

   ## Summary
   
   This PR introduces access restriction for high profile clients using a new 
social status field.
   
   ### Changes included:
   
   - Added Liquibase changelog to create `m_client.social_status_cv_id`
   - Added foreign key constraint from `m_client.social_status_cv_id` to 
`m_code_value.id`
   - Inserted new permission entry `CAN_VIEW_HIGH_PROFILE_CLIENT` into 
`m_permission`
   - Included the new `FINERACT-1430` changelog in `db.changelog-master.xml`
   - Added `socialStatus` field in `Client` entity mapped to 
`social_status_cv_id`
   - Enforced permission validation when reading a client with social status set
   - Added `PermissionConstants.CAN_VIEW_HIGH_PROFILE_CLIENT` constant
   
   ---
   
   ## Behavior
   
   - If `social_status_cv_id` is **null**, the client can be viewed normally.
   - If `social_status_cv_id` is **not null**, the system validates the 
required permission:
   
   ```java
   context.authenticatedUser()
          .validateHasPermissionTo(
              PermissionConstants.CAN_VIEW_HIGH_PROFILE_CLIENT
          );


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to