summaryrefslogtreecommitdiffstats
path: root/frontend/components/PleaseSignIn.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-04-12 16:31:01 -0400
committerWes Bos <wesbos@gmail.com>2018-04-12 16:31:01 -0400
commit97b6de6aa437f7a913a33b9e6aa18a919faf2caf (patch)
tree431e12a535baf1d2ad59601ee7c5e8084ae7a263 /frontend/components/PleaseSignIn.js
parentd22616d5a675f5a381c741784333151255713b45 (diff)
a whole bunch of things that should be in their own commits
Diffstat (limited to 'frontend/components/PleaseSignIn.js')
-rw-r--r--frontend/components/PleaseSignIn.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/frontend/components/PleaseSignIn.js b/frontend/components/PleaseSignIn.js
index 1533dbd..ff3b956 100644
--- a/frontend/components/PleaseSignIn.js
+++ b/frontend/components/PleaseSignIn.js
@@ -20,9 +20,16 @@ const PleaseSignIn = props => (
// check if they NO permissions, or they don't meet the requmrenets
if (
!data.me.permissions ||
- !props.allowedPermissions.some(permission => data.me.permissions.contains(permission))
+ !props.allowedPermissions.some(permission => data.me.permissions.includes(permission))
) {
- return <p>Insufficient Permissions to Manage Permissions</p>;
+ return (
+ <p>
+ Insufficient Permissions to Manage Permissions. You have:
+ <strong>{data.me.permissions}</strong>
+ and you need
+ <strong>{props.allowedPermissions.join(' OR ')}</strong>
+ </p>
+ );
}
}
return props.children;