Commit 0a6c47ee authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie

Allow deleting of communities even when they have invite requests/offers

parent fc32ee0d
......@@ -43,6 +43,8 @@ if ($action == 'delete') {
}
db_begin();
delete_records('view_access_community', 'community', $id);
delete_records('community_member_invite', 'community', $id);
delete_records('community_member_request', 'community', $id);
delete_records('community_member', 'community', $id);
delete_records('community', 'id', $id);
db_commit();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment