|
|
@@ -479,7 +479,7 @@ func MyFavoriteDataset(ctx *context.Context) { |
|
|
|
} |
|
|
|
isCollaborator, _ := repo.IsCollaborator(ctx.User.ID) |
|
|
|
|
|
|
|
if repo.OwnerID == ctx.User.ID || isCollaborator { |
|
|
|
if repo.OwnerID == ctx.User.ID || isCollaborator || repo.Owner.IsUserPartOfOrg(ctx.User.ID) { |
|
|
|
IsColDatasetIDs = append(IsColDatasetIDs, datasetStar.DatasetID) |
|
|
|
} else { |
|
|
|
NotColDatasetIDs = append(NotColDatasetIDs, datasetStar.DatasetID) |
|
|
|