[MM-58492][MM-58523] Fixed some access control bugs around archived channels by replacing the permission check with HasPermissionToReadChannel (#27409)
* [MM-58492][MM-58523] Fixed some access control bugs around archived channels by replacing the permission check with HasPermissionToReadChannel * Fix lint, add ChannelId to uploads * Fix MMCTL tests and remove unnecessary check for the error message that doesn't work anyways * Include channel map for getting flagged posts --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6ddf796384
Коммит
aa85a13c8f
@@ -1375,7 +1375,7 @@ func TestListChannelBookmarksForChannel(t *testing.T) {
|
||||
|
||||
// an open channel for which the guest is a member but the basic
|
||||
// user is not
|
||||
onlyGuestChannel := th.CreateChannelWithClient(th.SystemAdminClient, model.ChannelTypeOpen)
|
||||
onlyGuestChannel := th.CreateChannelWithClient(th.SystemAdminClient, model.ChannelTypePrivate)
|
||||
th.AddUserToChannel(guest, onlyGuestChannel)
|
||||
guestBookmark := createBookmark("guest", onlyGuestChannel.Id)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user