Skip to content

Commit ea61400

Browse files
authored
Add data_visibility enum field to survey proto (#2168)
1 parent 6c7f96a commit ea61400

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

proto/src/ground/v1beta1/survey.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,21 @@ message Survey {
103103

104104
// Defines who can access the survey beyond users in the ACLs.
105105
GeneralAccess general_access = 8;
106+
107+
// Possible values for the visibility of data in this survey.
108+
enum DataVisibility {
109+
// Default value when visibility unset. Same as CONTRIBUTOR_AND_ORGANIZERS.
110+
DATA_VISIBILITY_UNSPECIFIED = 0;
111+
112+
// LOIs and submissions can only be viewed by their contributor and survey organizers.
113+
CONTRIBUTOR_AND_ORGANIZERS = 1;
114+
115+
// LOIs and submissions can be viewed by all users with access to this survey.
116+
ALL_SURVEY_PARTICIPANTS = 2;
117+
}
118+
119+
// Defines who can see data submitted in this survey.
120+
DataVisibility data_visibility = 9;
106121
}
107122

108123
// Defines a user's role in a survey.

0 commit comments

Comments
 (0)