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

LUT-27605: Use forms' workgroups to restrict their access (and the access to their responses) to users part of the same workgroups #402

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

atos-mohamed-b
Copy link
Contributor

  1. This Pull Request contains the same code changes suggested in the following PR:

  2. It does add one extra method in the MultiviewFormService.java:

List<Question> getQuestionListFromAuthorizedForms( Integer nIdForm, User user )

This method is used to only retrieve the Questions from the Forms that the user is allowed to access (same Workgroup).

It can be useful if we don't want to display the search filters or column names of unauthorized Forms in the multiview responses page (jsp/admin/plugins/forms/MultiviewForms.jsp).

@Override
public IFormPanelInitializerQueryPart getIFormPanelInitializerQueryPart( User user )
{
return new FormPanelFormResponseInitializerQueryPart( _user );
Copy link
Member

Choose a reason for hiding this comment

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

Use the user object passed in parameters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi, the requested change has been made

…cess to their responses) to users part of the same workgroups
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