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

Refactor textanswers access control #2372

Open
jooooosef opened this issue Jan 14, 2025 · 0 comments
Open

Refactor textanswers access control #2372

jooooosef opened this issue Jan 14, 2025 · 0 comments

Comments

@jooooosef
Copy link
Collaborator

jooooosef commented Jan 14, 2025

Some users can see textanswers and select some filters for those answers.
The page is results_evaluation_detail.html and gets its content from evaluation_detail.
There are now remove_textanswers_that_the_user_must_not_see and can_textanswer_be_seen_by to control if a user is allowed to see specific textanswers while can_textanswer_be_seen_by also handles the user selected filters. If these filter buttons are not usable then they should be disabled which is handled by code inside evaluation_detail. This leads to code duplication.

This should be changed according to:
#2232 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant