File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ type: application
1818# This is the chart version. This version number should be incremented each time you make changes
1919# to the chart and its templates, including the app version.
2020# Versions are expected to follow Semantic Versioning (https://semver.org/)
21- version : 0.4.4
21+ version : 0.4.5
2222
2323# This is the version number of the application being deployed. This version number should be
2424# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change @@ -205,20 +205,18 @@ class Organization implements Namespace {
205205 owners : User [ ]
206206 editors : User [ ]
207207 viewers : User [ ]
208- parents : Organization [ ]
209208 }
210209
211210 permits = {
212211 view : ( ctx : Context ) : boolean =>
213212 this . related . viewers . includes ( ctx . subject ) ||
213+ this . related . owners . includes ( ctx . subject ) ||
214214 this . permits . edit ( ctx ) ,
215215 edit : ( ctx : Context ) : boolean =>
216216 this . related . editors . includes ( ctx . subject ) ||
217- this . permits . delete ( ctx ) ,
218- invite : ( ctx : Context ) : boolean =>
219- this . permits . view ( ctx ) ,
220- delete : ( ctx : Context ) : boolean =>
221217 this . related . owners . includes ( ctx . subject ) ||
222- this . related . parents . traverse ( ( parent ) => parent . permits . delete ( ctx ) ) ,
218+ this . permits . delete ( ctx ) ,
219+ invite : ( ctx : Context ) : boolean => this . permits . view ( ctx ) ,
220+ delete : ( ctx : Context ) : boolean => this . related . owners . includes ( ctx . subject ) ,
223221 }
224222}
You can’t perform that action at this time.
0 commit comments