fix: use default (non-member) membership when membership doesn't exist
This commit is contained in:
parent
0615f44bfa
commit
8c43f62545
3 changed files with 9 additions and 4 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue