zendesk / linksf

A mobile website to connect those in need in to services that can help them
http://link-sf.com
Apache License 2.0
62 stars 38 forks source link

Can't delete existing organization (on purpose) #396

Closed ideaOwl closed 2 years ago

ideaOwl commented 7 years ago

In selecting an organization under the admin page and clicking on the "Delete this Organization" button, the site redirects me to the /admin page, but the organization still remains. Here's the console error:

image

Response is just { "error" : "Permission denied" }

In case it's my existing setup, here's the Firebase rules:

{ "rules": { ".read": true, ".write": "auth != null", "organizations": { ".indexOn": [ "id" ] }, "services": { ".indexOn": [ "organization" ] }, "regular_schedules": { ".indexOn": [ "organization_id" ] } } }

I don't think it's an error from Firebase, given that I found a way to wipe the organizations object from the database via a bug.