Skip to content

[candidate_parameters] Users without permission to see candidate parameters are able to see the "button" to access it. #9585

Description

@racostas

Describe the bug
Minor UI bug.
Users without permission to see candidate parameters are able to see the "button" to access it even if 403 is warranted in this case.

To Reproduce
Steps to reproduce the behavior (attach screenshots if applicable):

  1. Logging into LORIS without having any of the candidate parameters permissions.
  2. Go to MainMenu->Candidate->Access Profile and click in one of the Candidates.
    Image
  3. The "Profile" information is shown and the button to access the candidate_parameters info is there even if will be always going to 403 error since the user don't have permissions to access it.
    Image
  4. If the button is clicked
    Image

What did you expect to happen?
If the user don't have permission to access this info we should not even show the button to access it.
Image

Browser Environment (please complete the following information):

  • OS: MS Windows 11
  • Browser: Chrome
  • Version 133.0.6943.127 (Official Build) (64-bit)

Server Environment (if known):

  • loris 27 demo official testing VM

Metadata

Metadata

Assignees

Labels

27.0.0 - BugsBugs Found in LORIS 27 testingDifficulty: SimplePR or issue that should be easy to implement, review, or testModule: candidate_parametersPR or issue related to candidate_parameters module

Fields

No fields configured for Enhancement.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions