brendanheywood / theCrag-DEFUNCT

!!!!! PLEASE USE THIS ISSUES LIST INSTEAD: https://github.com/theCrag/website/issues
thecrag.com
0 stars 0 forks source link

Ajax map save doesn't work if you haven't logged into a 'process' page #93

Closed brendanheywood closed 13 years ago

brendanheywood commented 13 years ago

Eg to duplicate, log out, log into thecrag, edit a map and save and it will fail.

In a seperate tab open a process page like add route, it will ask you to log in again (BUG) but after you are logged in the ajax will save properly.

scd commented 13 years ago

We shouldn't allow any anonymous map entries. If they are not 'template' logged in then they should not be able to get to the edit map page.

There might also be a bug where they are logged in according to the template but ajax doesn't think so. It was cut and paste code, but I could have done something wrong. The user validation is overdue for a bit of refactoring.

brendanheywood commented 13 years ago

As far as I can tell the template pages and the process pages behave like two different sites and you can be logged into one but not the other. This is the root cause issue.

In the case above they are logged in and it should save but doesn't because they aren't logged into the other half of the site (the process side)

scd commented 13 years ago

This should be fixed now. The template session logic is now the same as the process session logic