mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 17:41:43 -05:00
allow guests in withAccess
This commit is contained in:
parent
f0fb423b3f
commit
c4945ddc2f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue