rubenvanassche / Programming-Project-Databases

A World championship statistics website
coachcenter.be
GNU General Public License v3.0
1 stars 1 forks source link

Check what happens when non-logged in user tries to access user-only page #78

Closed JakobStruye closed 10 years ago

JakobStruye commented 10 years ago

For example user/bets gives empty page for non-logged in users. We should probably have a "logged in users only" page to link to in case a non-logged in user tries to access one of these pages through the URL.

I'll look into it tomorrow, unless someone has another idea.

Edit: logging out on "My Profile" and "preferences" crashes.

KristofDM commented 10 years ago

iirc, Tom has done some work on that?

Also: I've changed the code so that when a user logs out, he gets redirected to the home page. No more crashes or staying on member only pages when logging out. (Which feels like the right thing to do, if you ask me.)

JakobStruye commented 10 years ago

Ah yes, Tom and I worked on this together. Someone just needs to check if we didn't forget any pages.

Also: mm'kay, very well

JakobStruye commented 10 years ago

Added a bunch more, should be ready now.

Only one I'm not sure about is the overview of all users. Should a non-logged in user be able to see a list of all users?

KristofDM commented 10 years ago

Not sure, are non logged in users allowed to vies user profiles? Does the assignment say anything about this?

JakobStruye commented 10 years ago

Assignment doesn't mention it. Currently non-logged in users are not allowed to view profiles, though this could change if we decide to keep the userlist accessible to non-logged ins.

JakobStruye commented 10 years ago

Made the profiles and list visible to non-logged in. Also made the userlist button visible to non-logged in. All of this should be taken care of now.