Skip to content

Commit

Permalink
fix perm
Browse files Browse the repository at this point in the history
  • Loading branch information
Flemmli97 committed Nov 15, 2024
1 parent 5178847 commit f915e44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extensions/warp-ipfs/src/store/message/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2177,7 +2177,7 @@ impl ConversationTask {
if !&self
.document
.permissions
.has_permission(&own_did, GroupPermission::EditGroupVisual)
.has_permission(&own_did, GroupPermission::EditGroupImages)
&& own_did.ne(creator)
{
return Err(Error::Unauthorized);
Expand Down Expand Up @@ -2319,7 +2319,7 @@ impl ConversationTask {
if !&self
.document
.permissions
.has_permission(&own_did, GroupPermission::EditGroupVisual)
.has_permission(&own_did, GroupPermission::EditGroupImages)
&& own_did.ne(creator)
{
return Err(Error::Unauthorized);
Expand Down Expand Up @@ -3523,7 +3523,7 @@ async fn message_event(
&& !this
.document
.permissions
.has_permission(sender, GroupPermission::EditGroupVisual)
.has_permission(sender, GroupPermission::EditGroupImages)
{
return Err(Error::Unauthorized);
}
Expand All @@ -3543,7 +3543,7 @@ async fn message_event(
&& !this
.document
.permissions
.has_permission(sender, GroupPermission::EditGroupVisual)
.has_permission(sender, GroupPermission::EditGroupImages)
{
return Err(Error::Unauthorized);
}
Expand Down

0 comments on commit f915e44

Please sign in to comment.