on master help sign in
views/point.js: ensure correct perms for invites

fixes #418

commit57ad0ff024893fb7708bc67ab3419796d0b5bf72 authorLiam Fitzgerald <liam@urizen.co> dateWed 1 Apr 2020, 03:08 (7 years ago) parentbfbafde
1 file changed+2−1
src/views/Point.js+2−1
src/views/Point.js+2−1
@@ -41,6 +41,7 @@ export default function Point() {
4141 canManage,
4242 canSpawn,
4343 canVote,
44+ isOwner,
4445 } = useCurrentPermissions();
4546
4647 // fetch the invites for the current cursor
@@ -194,7 +195,7 @@ export default function Point() {
194195 </Grid.Item>
195196 </>
196197 )}
197− {!showInviteForm && availableInvites.getOrElse(0) > 0 && (
198+ {!showInviteForm && availableInvites.getOrElse(0) > 0 && isOwner && (
198199 <Grid.Item
199200 full
200201 solid