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

BAH-4062 | Add Privilege Checks for Task Resource #66

Merged
merged 8 commits into from
Aug 21, 2024
Merged

Conversation

mohan-13
Copy link
Member

@mohan-13 mohan-13 commented Aug 9, 2024

This PR adds privilege checks for Task Resource service methods.
In order for the interceptor to execute, service implementation and bean creation is defined through moduleApplicationContext instead of using @Autowired and @Component annotations.

JIRA: https://bahmni.atlassian.net/browse/BAH-4062

omod/src/main/resources/webModuleApplicationContext.xml Outdated Show resolved Hide resolved
@@ -23,11 +23,14 @@
@Repository
public class TaskDaoImpl implements TaskDao {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im not very sure of the reasoning, the only thing I can see is that the extension class supports additional methods

@mohan-13 mohan-13 merged commit 8d1edb5 into main Aug 21, 2024
2 checks passed
@mohan-13 mohan-13 deleted the BAH-4062 branch August 21, 2024 01:31
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