Skip to content

Commit a6ffc3c

Browse files
committed
Fix invitation link permission
1 parent 85c07c5 commit a6ffc3c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pages/invitation.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ export default class Invitation extends Component {
8585
}
8686

8787
if (!team) return null
88+
const userId = this.props.user.uid
89+
if (!userId) {
90+
return <article className='inner page'>
91+
You are not logged in. Sign in and come back to this link.
92+
</article>
93+
}
8894
return (
8995
<article className='inner page'>
9096
You have been invited to join <b>{team.name}</b>

pages/login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Login extends Component {
1616
const OSM_NAME = publicRuntimeConfig.OSM_NAME
1717
return (
1818
<section className='inner page'>
19-
<h1>Login Provider</h1>
19+
<h1>Login</h1>
2020
<p>Teams uses {OSM_NAME} as your login, connect your {OSM_NAME} account!</p>
2121
<br />
2222
<Button href={`/oauth/openstreetmap?login_challenge=${this.props.challenge}`}>Login with {OSM_NAME}</Button>

0 commit comments

Comments
 (0)