This implements API needed to delete Organization. As part of these changes I moved deleting CollectionUser directly into UserOrganization::delete() where it's used wen user is removed but also when organization is deleted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/dani-garcia/vaultwarden/pull/25
**Author:** [@mprasil](https://github.com/mprasil)
**Created:** 5/19/2018
**Status:** ✅ Merged
**Merged:** 5/19/2018
**Merged by:** [@dani-garcia](https://github.com/dani-garcia)
**Base:** `master` ← **Head:** `org_delete`
---
### 📝 Commits (1)
- [`941747f`](https://github.com/dani-garcia/vaultwarden/commit/941747f9e84eaf336e04b6d4bd1355300402e93e) Implement deleting Organization
### 📊 Changes
**4 files changed** (+71 additions, -22 deletions)
<details>
<summary>View changed files</summary>
📝 `src/api/core/organizations.rs` (+23 -9)
📝 `src/db/models/cipher.rs` (+7 -0)
📝 `src/db/models/collection.rs` (+13 -0)
📝 `src/db/models/organization.rs` (+28 -13)
</details>
### 📄 Description
This implements API needed to delete Organization. As part of these changes I moved deleting CollectionUser directly into UserOrganization::delete() where it's used wen user is removed but also when organization is deleted.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/25
Author: @mprasil
Created: 5/19/2018
Status: ✅ Merged
Merged: 5/19/2018
Merged by: @dani-garcia
Base:
master← Head:org_delete📝 Commits (1)
941747fImplement deleting Organization📊 Changes
4 files changed (+71 additions, -22 deletions)
View changed files
📝
src/api/core/organizations.rs(+23 -9)📝
src/db/models/cipher.rs(+7 -0)📝
src/db/models/collection.rs(+13 -0)📝
src/db/models/organization.rs(+28 -13)📄 Description
This implements API needed to delete Organization. As part of these changes I moved deleting CollectionUser directly into UserOrganization::delete() where it's used wen user is removed but also when organization is deleted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.