diff --git a/apps/api-gql/internal/delivery/gql/directives/has-channel-roles-dashboard-permission.go b/apps/api-gql/internal/delivery/gql/directives/has-channel-roles-dashboard-permission.go index 3487a634f..d55cf8f7e 100644 --- a/apps/api-gql/internal/delivery/gql/directives/has-channel-roles-dashboard-permission.go +++ b/apps/api-gql/internal/delivery/gql/directives/has-channel-roles-dashboard-permission.go @@ -53,9 +53,9 @@ func (c *Directives) HasChannelRolesDashboardPermission( model.ChannelRoleTypeSubscriber: userStat.IsSubscriber, } - for _, role := range channelRoles { + for i, role := range channelRoles { if roleToStats[role.Type] { - role.Users = append( + channelRoles[i].Users = append( role.Users, &model.ChannelRoleUser{ ID: "", // not needed