fix: allow users with a private profile to view their own posts
add: channels/messages models
This commit is contained in:
parent
0c814e95d7
commit
9e6c5c9726
6 changed files with 94 additions and 1 deletions
|
@ -202,7 +202,7 @@ impl DataManager {
|
|||
let user = self.get_user_by_id(owner).await?;
|
||||
|
||||
// check relationship
|
||||
if user.settings.private_profile {
|
||||
if user.settings.private_profile && user.id != user_id {
|
||||
if user_id == 0 {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue