-
Notifications
You must be signed in to change notification settings - Fork 143
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
Add environmental user rights and default user [3] #11572
Comments
@bernardsilenou I've refined the issue, does everything look fine for you? |
|
@bernardsilenou I'll exclude the merge duplicates right for now because that will probably one of the later things that get added to the environmental module, and also the right to access the sample dashboard, because before we give these users access to the sample dashboard, we'll have to make major changes to it (e.g. they should not see samples and their counts for human samples). These should be handled in dedicated issues related to adding these features/doing these changes. |
@MateStrysewske Nothing more to add from my side |
… facade methods based on user rights
…le right to the new role because it's required by the pathogen test related ones
…2207) * #11572 Add environmental user rights and default user role * #11572 Add environmental user rights and default user role - restrict facade methods based on user rights * #11572 Add environmental user rights and default user role - fixed upgrade version * #11572 Add environmental user rights and default user role - add sample right to the new role because it's required by the pathogen test related ones --------- Co-authored-by: Levente Gal <levente.gal.ext@vitagroup.ag>
The new role currently has SAMPLE_VIEW and SAMPLE_EDIT rights because those are required by pathogen test related rights. It will be changed with #11721 as decribed here: #11721 (comment) |
Verified ticket on the local machine using the latest version of SORMAS from the development branch - 1.86.0-SNAPSHOT(db8db16). |
Feature Description
Add new user rights related to the new environment entity (#11796) and a new default user role called Environmental Surveillance User that is used to manage environments and associated samples.
Added Value/Benefit
A dedicated default user for the new module will help system admins to set up users quickly. New user rights are needed in order to properly manage environment entities.
This right should be added to the flexible user role module
For jurisdiction level, validate with region and district of env
This role should be able to function without any rights to surveillance data like case, contact, person, event
Acceptance Criteria
ENVIRONMENT
(also with a caption) for them:ENVIRONMENT_VIEW
ENVIRONMENT_CREATE
ENVIRONMENT_EDIT
ENVIRONMENT_ARCHIVE
ENVIRONMENT_DELETE
ENVIRONMENT_IMPORT
(depends on create)ENVIRONMENT_EXPORT
ENVIRONMENT_VIEW
(except import)PERFORM_BULK_OPERATIONS
,PATHOGEN_TEST_CREATE
,PATHOGEN_TEST_EDIT
,TASK_VIEW
,TASK_CREATE
,TASK_EDIT
,TASK_ASSIGN
,TASK_EXPORT
,SEE_SENSITIVE_DATA_IN_JURISDICTION
,SORMAS_REST
,SORMAS_UI
, and all newly added environment rights from aboveENVIRONMENT_MANAGEMENT
has been added which is disabled by defaultImplementation Details
Make sure to add the new user rights to all relevant web.xml and glassfish-web.xml files.
Additional Information
This issue is part of the epic #11533. Sample rights have been excluded because we will likely create an individual entity for environmental samples in #11721 which will also require individual user rights.
The text was updated successfully, but these errors were encountered: