Cadasta / cadasta-platform

[DEPRECATED] Main repository of the Cadasta platform. Technology to help communities document their land rights around the world.
https://demo.cadasta.org
GNU Affero General Public License v3.0
53 stars 81 forks source link

Permission Denied when Adding New Project #468

Closed fhpichel closed 8 years ago

fhpichel commented 8 years ago

After establishing an organization, setting project name (shorter this time around) and attempting to create the project I get a "permission denied" response. Strange, as I'm establishing the new project as the admin.

Images below are of the data entry leading to the "permission denied"

error1

error2

error3

wonderchook commented 8 years ago

@amplifi can you see if you can find anything in the logs?

amplifi commented 8 years ago

@wonderchook Django is only logging uncaught exceptions, so there wasn't anything corresponding for this event. I'm not able to replicate the "Permission Denied" message using the same form inputs under another user in staging and demo. The database entries for the user account and organization in the screenshots look correct. The questionnaire attached to the form uploaded successfully and looks valid (except for the blank row at the top of the Settings tab, but that doesn't generate a "Permission Denied" message and wouldn't prevent the project being added).

wonderchook commented 8 years ago

@fhpichel can you try doing this again and write step by step what your inputs are?

linzjax commented 8 years ago

I'm also getting a permission denied error, but it's occurring because I appear to have the option to add a project to any organization I want to. The organization list should be limited to those you're a member of, and if you're not a member of any organization you should be redirected to create an organization first.

ian-ross commented 8 years ago

@linzjax Hah. That explains something I saw earlier. Chandra had created a project in an organization I'd created, and I couldn't figure out how she'd done it!

wonderchook commented 8 years ago

So I'm wondering if this is still an issue since it was on demo a month ago and we've fixed some of the UI elements that lead to this happening? For example with the latest release you only get orgs as an option when creating your project where you have access

linzjax commented 8 years ago

Oh yeah, if you go to the project list and try to add a project from there you get the full list of organizations in the drop down.

If you add a project from an organization page, you don't even see the option to select another organization.

ian-ross commented 8 years ago

That's kind of weird. I only see a couple of organizations in the dropdown when I try to add a project from the project list.

linzjax commented 8 years ago
all of the organizations
ian-ross commented 8 years ago

That's on demo though. I thought we were doing QA on staging?

linzjax commented 8 years ago

(face-palm) I'll see myself out...

Yeah this is only a problem on demo.

ian-ross commented 8 years ago

Maybe we need different colour navbars for the different deployments? It's really easy to get confused.

ian-ross commented 8 years ago

Or maybe a little thing like the "Fork me on GitHub" ribbon (or whatever you call it) saying "STAGING" or "DEMO"?

wonderchook commented 8 years ago

I'm going to close this as I believe it is no longer a problem with the upcoming release.