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

User being directed to unauthorized page #57

Open
dowdf opened this issue Oct 10, 2019 · 7 comments · May be fixed by #80
Open

User being directed to unauthorized page #57

dowdf opened this issue Oct 10, 2019 · 7 comments · May be fixed by #80
Labels

Comments

@dowdf
Copy link

dowdf commented Oct 10, 2019

I am on REDCap 9.1.1 and using version 3.3.7
In an event on a longitudinal project in production mode, if a user is on a form where the module has hidden the rest of the forms in the event, but there is another form in the event that is hidden due to user rights, but not hidden by the module, REDCap displays Save and go to next form. That takes the user to the form that should be hidden because of user rights, and the user gets an unauthorized message for that page. This doesn't happen in development mode.

@pbchase
Copy link
Contributor

pbchase commented Oct 11, 2019

@dowdf, can you help us recreate the problem you are experiencing? So screenshots of what you are seeing might be helpful. A project XML and a screenshot of the FRSL module configuration could also be helpful.

@dowdf
Copy link
Author

dowdf commented Oct 11, 2019 via email

@pbchase
Copy link
Contributor

pbchase commented Oct 14, 2019

@dowdf, Thanks for the additional data, but your screenshots are not attached. Could you upload them directly at #57 ?

Also, I can't help but think that your error reminds me of complaints people have our Linear Data Entry Workflow module. Are you using that as well?

@dowdf
Copy link
Author

dowdf commented Oct 16, 2019

Here are screen shots and the XML as a zip. I am not using the Linear Data Entry Workflow module.

KPMPParticipantManag_2019-10-11_2115.REDCap.zip

2 entry grid
5 module config
4 Error form
3 first form
1 User rights

@NikNakk
Copy link

NikNakk commented Aug 11, 2020

I'm having exactly the same issue. It would be helpful if this could be fixed. Great module by the way.

NikNakk added a commit to NikNakk/form_render_skip_logic that referenced this issue Aug 11, 2020
This check should prevent the access denied error described in ctsit#57.

Currently always checks against the logged in user and ignores the
"View project as user" option.
@NikNakk
Copy link

NikNakk commented Aug 11, 2020

I've made a proposed fix for this issue at https://github.com/NikNakk/form_render_skip_logic/tree/fix_user_rights . Note that at present it does not respect the 'View project as user' option for admins, but should work ok in normal use. I've also not yet done extensive testing. I'd be happy to make a pull request if helpful but thought I'd add it to the issue discussion first.

@NikNakk
Copy link

NikNakk commented Aug 11, 2020

I've now got it to handle the 'View project as user' option too.

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

Successfully merging a pull request may close this issue.

4 participants