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

When refreshing an assignment page, it redirects you back to the home page #29

Open
davish opened this issue Jun 13, 2015 · 0 comments
Open
Labels

Comments

@davish
Copy link

davish commented Jun 13, 2015

This is the expected functionality when an assignment doesn't exist to the user: either it doesn't actually exist or they don't have access to it. (lines 5-20 in publishes.js determines what each user can see.)

The interesting thing is that this doesn't happen when you refresh a /edit subpage that only admins can access. The difference between the assignment route handler and the edit handler seems to be that the edit handler checks that the user is an admin first before trying to get the assignment.

I have a feeling this is a problem with publishes.js. This StackOverflow question seems to apply, but I might ask one that's more specific to our circumstance to get a more applicable answer.

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

No branches or pull requests

1 participant