Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel

This commit is contained in:
SachaG 2018-09-12 10:32:53 +09:00
commit 85c57c4beb

View file

@ -13,7 +13,7 @@ export default function withAccess (options) {
// if there are any groups defined check if user belongs, else just check if user exists
canAccess = currentUser => {
return groups ? currentUser && Users.isMemberOf(currentUser, groups) : currentUser;
return groups ? Users.isMemberOf(currentUser, groups) : currentUser;
}
// redirect on constructor if user cannot access