Tests[ListSubscribedChannelMessages]

This commit is contained in:
2023-05-28 02:50:55 +02:00
parent 3db636d41a
commit 3d1e6cfa17
2 changed files with 107 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ func (ac *AppContext) CheckPermissionChanMessagesRead(channel models.Channel) *g
if !sub.Confirmed {
return langext.Ptr(ginresp.APIError(ac.ginContext, 401, apierr.USER_AUTH_FAILED, "You are not authorized for this action", nil))
}
return nil // subscribed channel
}
}