on master help sign in
views/point.js: ensure correct perms for invites
57ad0ffLiam Fitzgerald
src/views/Point.js+2−1
@@ -41,6 +41,7 @@ export default function Point() {
41 canManage,
41 canManage,
42 canSpawn,
42 canSpawn,
43 canVote,
43 canVote,
44+ isOwner,
44 } = useCurrentPermissions();
45 } = useCurrentPermissions();
45
46
46 // fetch the invites for the current cursor
47 // fetch the invites for the current cursor
@@ -194,7 +195,7 @@ export default function Point() {
194 </Grid.Item>
195 </Grid.Item>
195 </>
196 </>
196 )}
197 )}
197− {!showInviteForm && availableInvites.getOrElse(0) > 0 && (
198+ {!showInviteForm && availableInvites.getOrElse(0) > 0 && isOwner && (
198 <Grid.Item
199 <Grid.Item
199 full
200 full
200 solid
201 solid