Closed brendanheywood closed 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.
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)
This should be fixed now. The template session logic is now the same as the process session logic
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.