Skip to content

Commit 2643106

Browse files
authored
Merge pull request #77 from linuxfoundation/andrest50/meeting-attachments
[LFXV2-707] Update authorization model for OpenFGA to include meeting and past meeting attachment types
2 parents 7aa306a + ec43f39 commit 2643106

File tree

1 file changed

+40
-22
lines changed

1 file changed

+40
-22
lines changed

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

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ spec:
1919
- patch: Modifications of define
2020
*/}}
2121
- version:
22-
major: 5
23-
minor: 3
24-
patch: 2
22+
major: 6
23+
minor: 0
24+
patch: 0
2525
authorizationModel: |
2626
model
2727
schema 1.1
@@ -98,7 +98,16 @@ spec:
9898
# only certain privileged users can view it.
9999
define viewer: [user:*] or participant or organizer or auditor
100100
101-
type past_meeting
101+
# The meeting_attachment type identifies an attachment of a meeting.
102+
type meeting_attachment
103+
relations
104+
define meeting: [meeting]
105+
define writer: organizer from meeting
106+
define auditor: writer or auditor from meeting
107+
define participant: participant from meeting
108+
define viewer: [user:*] or participant or writer or auditor
109+
110+
type past_meeting
102111
relations
103112
define project: [project]
104113
define committee: [committee]
@@ -122,12 +131,21 @@ spec:
122131
# only certain privileged users can view it.
123132
define viewer: [user:*] or attendee or invitee or organizer or auditor
124133
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
134+
# The past_meeting_attachment type identifies an attachment of a past meeting.
135+
type past_meeting_attachment
136+
relations
137+
define past_meeting: [past_meeting]
138+
define writer: organizer from past_meeting
139+
define auditor: writer or auditor from past_meeting
140+
define participant: host from past_meeting or invitee from past_meeting or attendee from past_meeting
141+
define viewer: [user:*] or participant or writer or auditor
142+
143+
# The past_meeting_recording type identifies a recording of a past meeting.
144+
# Access to a recording is limited to one of the following groups:
145+
# - Only meeting hosts
146+
# - Only meeting participants
147+
# - Public (anyone)
148+
type past_meeting_recording
131149
relations
132150
define past_meeting: [past_meeting]
133151
define writer: organizer from past_meeting
@@ -145,12 +163,12 @@ spec:
145163
# to view the recording.
146164
define viewer: [user:*] or writer or auditor
147165
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
166+
# The past_meeting_transcript type identifies a transcript of a past meeting.
167+
# Access to a transcript is limited to one of the following groups:
168+
# - Only meeting hosts
169+
# - Only meeting participants
170+
# - Public (anyone)
171+
type past_meeting_transcript
154172
relations
155173
define past_meeting: [past_meeting]
156174
define writer: organizer from past_meeting
@@ -168,12 +186,12 @@ spec:
168186
# to view the transcript.
169187
define viewer: [user:*] or writer or auditor
170188
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
189+
# The past_meeting_summary type identifies a summary of a past meeting.
190+
# Access to a summary is limited to one of the following groups:
191+
# - Only meeting hosts
192+
# - Only meeting participants
193+
# - Public (anyone)
194+
type past_meeting_summary
177195
relations
178196
define past_meeting: [past_meeting]
179197
define writer: organizer from past_meeting

0 commit comments

Comments
 (0)