Closed maudetes closed 3 years ago
Correct me if I'm wrong, but this will show private datasets and reuses for everyone looking at the Organization page? I don't think this is what we want, only the members of the Organization should be able to see them (which will be fun to code ^^)
Nope, the datasets and reuses returned depend on can_view
, here: https://github.com/etalab/udata-gouvfr/pull/619/files#diff-fadd3a9f6b19d9f032fbf2b69e194900629849fa2d31273c33a768e6367b9cddR90.
Users that can't view will be shown only visible datasets and reuses. Or did I miss something?
Users that can't view will be shown only visible datasets and reuses. Or did I miss something?
Nope, I missed the important part 😇
Fix https://github.com/etalab/data.gouv.fr/issues/421 and https://github.com/etalab/data.gouv.fr/issues/420.
Show hidden datasets and reuses in same block as public ones. For private datasets, a badge is shown.
Fix tests accordingly (and make empty assets explicit in those).
Ex: