Skip to content

Commit 46e19d7

Browse files
authored
Merge pull request #65 from linuxfoundation/andrest50/past-meeting-artifacts
[LFXV2-603] Add authorization model types for past meeting artifacts
2 parents 3dbd52c + 7889019 commit 46e19d7

File tree

1 file changed

+70
-1
lines changed

1 file changed

+70
-1
lines changed

charts/lfx-platform/templates/openfga/model.yaml

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
- patch: Modifications of define
2020
*/}}
2121
- version:
22-
major: 4
22+
major: 5
2323
minor: 3
2424
patch: 2
2525
authorizationModel: |
@@ -121,4 +121,73 @@ spec:
121121
# If the past meeting is public, then any user can view it; but if it is private, then
122122
# only certain privileged users can view it.
123123
define viewer: [user:*] or attendee or invitee or organizer or auditor
124+
125+
# The past_meeting_recording type identifies a recording of a past meeting.
126+
# Access to a recording is limited to one of the following groups:
127+
# - Only meeting hosts
128+
# - Only meeting participants
129+
# - Public (anyone)
130+
type past_meeting_recording
131+
relations
132+
define past_meeting: [past_meeting]
133+
define writer: organizer from past_meeting
134+
define auditor: auditor from past_meeting
135+
define host: host from past_meeting
136+
define participant: invitee from past_meeting or attendee from past_meeting
137+
# The viewer relation needs to be kept up-to-date separately from the other relations
138+
# because it depends on the past meeting artifact_visibility setting. Auditors and writers
139+
# do however by default have access to view the recording.
140+
#
141+
# If the artifact_visibility is public, then every user should be a viewer
142+
# If it is set to only meeting participants, then only the meeting participants
143+
# should be able to view the recording.
144+
# If it is set to only meeting hosts, then only the meeting hosts should be able
145+
# to view the recording.
146+
define viewer: [user:*] or writer or auditor
147+
148+
# The past_meeting_transcript type identifies a transcript of a past meeting.
149+
# Access to a transcript is limited to one of the following groups:
150+
# - Only meeting hosts
151+
# - Only meeting participants
152+
# - Public (anyone)
153+
type past_meeting_transcript
154+
relations
155+
define past_meeting: [past_meeting]
156+
define writer: organizer from past_meeting
157+
define auditor: auditor from past_meeting
158+
define host: host from past_meeting
159+
define participant: invitee from past_meeting or attendee from past_meeting
160+
# The viewer relation needs to be kept up-to-date separately from the other relations
161+
# because it depends on the past meeting artifact_visibility setting. Auditors and writers
162+
# do however by default have access to view the transcript.
163+
#
164+
# If the artifact_visibility is public, then every user should be a viewer
165+
# If it is set to only meeting participants, then only the meeting participants
166+
# should be able to view the transcript.
167+
# If it is set to only meeting hosts, then only the meeting hosts should be able
168+
# to view the transcript.
169+
define viewer: [user:*] or writer or auditor
170+
171+
# The past_meeting_summary type identifies a summary of a past meeting.
172+
# Access to a summary is limited to one of the following groups:
173+
# - Only meeting hosts
174+
# - Only meeting participants
175+
# - Public (anyone)
176+
type past_meeting_summary
177+
relations
178+
define past_meeting: [past_meeting]
179+
define writer: organizer from past_meeting
180+
define auditor: auditor from past_meeting
181+
define host: host from past_meeting
182+
define participant: invitee from past_meeting or attendee from past_meeting
183+
# The viewer relation needs to be kept up-to-date separately from the other relations
184+
# because it depends on the past meeting artifact_visibility setting. Auditors and writers
185+
# do however by default have access to view the summary.
186+
#
187+
# If the artifact_visibility is public, then every user should be a viewer
188+
# If it is set to only meeting participants, then only the meeting participants
189+
# should be able to view the summary.
190+
# If it is set to only meeting hosts, then only the meeting hosts should be able
191+
# to view the summary.
192+
define viewer: [user:*] or writer or auditor
124193
{{- end }}

0 commit comments

Comments
 (0)