MM-63791: guest permissions to teams (#30789)

* improve th.CreateGuestAndClient

* test coverage for guest user access to teams

* restrict guest access to public teams unless a member
Этот коммит содержится в:
Jesse Hallam
2025-04-22 10:12:22 -03:00
коммит произвёл GitHub
родитель 79561c44c2
Коммит 701ddc896a
5 изменённых файлов: 122 добавлений и 19 удалений

Просмотреть файл

@@ -4102,7 +4102,7 @@ func TestAddChannelMemberGuestAccessControl(t *testing.T) {
th.App.Srv().SetLicense(model.NewTestLicense())
// Create a guest user
guest, guestClient := th.CreateGuestAndClient()
guest, guestClient := th.CreateGuestAndClient(t)
// Create a public channel to which the guest doesn't belong
publicChannel := th.CreatePublicChannel()