Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored permission validation in RolePermissionValidator #51

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

RonAzar
Copy link
Owner

@RonAzar RonAzar commented Sep 26, 2024

Refactored permission validation in RolePermissionValidator to make it less dependent on specific API endpoints. Moved role and permission checks closer to where they are used in resource classes, enhancing maintainability and adhering to clean code principles.

recognize abortWith doesn't work properly

…t less dependent on specific API endpoints. Moved role and permission checks closer to where they are used in resource classes, enhancing maintainability and adhering to clean code principles.

recognize abortWith doesn't work properly
@RonAzar RonAzar requested a review from vasofi September 26, 2024 09:45
@RonAzar RonAzar merged commit 6b4eaaa into RonAzar/Response-Resource Sep 26, 2024
RonAzar added a commit that referenced this pull request Sep 26, 2024
* Phase 2 - Step 4: Implement HR Response API

	•Added FeedbackResponseResource.kt to handle feedback response submissions.
	•Integrated role and permission checks to ensure authorized access for response submission.

* Phase 2 - Step 4: Implement HR Response API

	•Added FeedbackResponseResource.kt to handle feedback response submissions.
	•Integrated role and permission checks to ensure authorized access for response submission.

* fix to--> it's cleaner if you do:
          if (no permission) return

* Refactored permission validation in RolePermissionValidator to make it less dependent on specific API endpoints. Moved role and permission checks closer to where they are used in resource classes, enhancing maintainability and adhering to clean code principles. (#51)

recognize abortWith doesn't work properly
RonAzar added a commit that referenced this pull request Sep 26, 2024
* Phase 2 - Step 4.2: complete FeedbackResource

	•Implemented API endpoints for get Status, update Status, get Filtered Feedbacks

* fix to--> it's cleaner if you do:
          if (no permission) return

* Response resource (#49)

* Phase 2 - Step 4: Implement HR Response API

	•Added FeedbackResponseResource.kt to handle feedback response submissions.
	•Integrated role and permission checks to ensure authorized access for response submission.

* Phase 2 - Step 4: Implement HR Response API

	•Added FeedbackResponseResource.kt to handle feedback response submissions.
	•Integrated role and permission checks to ensure authorized access for response submission.

* fix to--> it's cleaner if you do:
          if (no permission) return

* Refactored permission validation in RolePermissionValidator to make it less dependent on specific API endpoints. Moved role and permission checks closer to where they are used in resource classes, enhancing maintainability and adhering to clean code principles. (#51)

recognize abortWith doesn't work properly
@RonAzar RonAzar deleted the RonAzar/Change-Role-Permission branch September 26, 2024 10:49
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.

2 participants