From f915e44bde792a38f7ca3865e322b556a4b8dc42 Mon Sep 17 00:00:00 2001 From: Flemmli97 Date: Fri, 15 Nov 2024 13:29:46 +0100 Subject: [PATCH] fix perm --- extensions/warp-ipfs/src/store/message/task.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/warp-ipfs/src/store/message/task.rs b/extensions/warp-ipfs/src/store/message/task.rs index d194ae793..689c4e24d 100644 --- a/extensions/warp-ipfs/src/store/message/task.rs +++ b/extensions/warp-ipfs/src/store/message/task.rs @@ -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); @@ -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); @@ -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); } @@ -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); }