fix: use default (non-member) membership when membership doesn't exist

This commit is contained in:
trisua 2025-04-09 21:39:30 -04:00
parent 0615f44bfa
commit 8c43f62545
3 changed files with 9 additions and 4 deletions

View file

@ -75,7 +75,12 @@ impl DataManager {
);
if res.is_err() {
return Err(Error::GeneralNotFound("community membership".to_string()));
// return Err(Error::GeneralNotFound("community membership".to_string()));
return Ok(CommunityMembership::new(
owner,
community,
CommunityPermission::DEFAULT,
));
}
Ok(res.unwrap())