Skip to content

Commit 615fc90

Browse files
author
Jeff Yanta
committed
auth/rpc: remove unecessary chat membership check for message read rpcs
1 parent 880edc1 commit 615fc90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

auth/rpc/messaging.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ func NewMessagingRpcAuthorizer(chats chat.Store, intents intent.Store, messages
3232
}
3333

3434
func (a *MessagingAuthorizer) CanStreamMessages(ctx context.Context, chatID *commonpb.ChatId, userID *commonpb.UserId) (bool, string, error) {
35-
return a.chatMembershipCheck(ctx, chatID, userID)
35+
return true, "", nil
3636
}
3737

3838
func (a *MessagingAuthorizer) CanGetMessage(ctx context.Context, chatID *commonpb.ChatId, userID *commonpb.UserId) (bool, string, error) {
39-
return a.chatMembershipCheck(ctx, chatID, userID)
39+
return true, "", nil
4040
}
4141

4242
func (a *MessagingAuthorizer) CanGetMessages(ctx context.Context, chatID *commonpb.ChatId, userID *commonpb.UserId) (bool, string, error) {
43-
return a.chatMembershipCheck(ctx, chatID, userID)
43+
return true, "", nil
4444
}
4545

4646
// todo: This needs a refactor/cleanup because it's blowing up in size/complexity

0 commit comments

Comments
 (0)