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

404 Error when trying to view the training record of someone who's account has been suspended due to inactivity #535

Open
jerbzz opened this issue May 16, 2023 · 2 comments

Comments

@jerbzz
Copy link
Contributor

jerbzz commented May 16, 2023

https://rigs.nottinghamtec.co.uk/training/item/56/qualified_users/

All names are hyperlinks.

Following the link behind my name takes me to my training record, as expected: https://rigs.nottinghamtec.co.uk/training/trainee/72/

Following any other link should also take me to that person's training record: https://rigs.nottinghamtec.co.uk/training/trainee/81/

But this link gives me a 404.

I would expect either a 403, a permission denied message, or the user profile to open. Theoretically the latter as I have a high permission level.

@FreneticScribbler
Copy link
Member

FreneticScribbler commented May 16, 2023

I don't think it's everyone. I inadvertently introduced this anti-feature when I made people's accounts get auto suspended after a year of not logging in, ala the forum and as a vague precursor to GDPR things. It'll 404 for anyone who's been suspended, and work fine for others. Try clicking on my name, for example - that should work fine.

It should indeed open the profile for anyone, I just need to figure out how to ensure that's still possible for suspended accounts. (The vast majority of them...)

@jerbzz
Copy link
Contributor Author

jerbzz commented May 16, 2023 via email

@FreneticScribbler FreneticScribbler changed the title In the Qualified Users view for a training item, following the link to any trainee profile other than your own generates a 404 error 404 Error when trying to view the training record of someone who's account has been suspended due to inactivity May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants