diff options
Diffstat (limited to 'frontend/components/PleaseSignIn.js')
| -rw-r--r-- | frontend/components/PleaseSignIn.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/components/PleaseSignIn.js b/frontend/components/PleaseSignIn.js index 4a2eabe..6be17cb 100644 --- a/frontend/components/PleaseSignIn.js +++ b/frontend/components/PleaseSignIn.js @@ -5,7 +5,8 @@ import Dump from './Dump'; const PleaseSignIn = props => ( <Query query={CURRENT_USER_QUERY}> - {({ data }) => { + {({ data, loading }) => { + if (loading) return <p>Loading...</p>; // check if they are signed in if (!data.me) { return ( @@ -24,7 +25,7 @@ const PleaseSignIn = props => ( ) { return ( <p> - Insufficient Permissions to Manage Permissions. You have: + Insufficient Permissions. You have: <strong>{data.me.permissions}</strong> and you need <strong>{props.allowedPermissions.join(' OR ')}</strong> |
