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

fixes #418

commit1323bb8e05999f15ee1a9cc060aabc6f3713e346 authorLiam Fitzgerald <liam@urizen.co> dateWed 1 Apr 2020, 03:08 (7 years ago) parent24942f5
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