mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
Merge pull request #2063 from lbke/bugfix/withAccess-guests
Allow "guests" in withAccess
This commit is contained in:
commit
27aaf06865
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
|
// if there are any groups defined check if user belongs, else just check if user exists
|
||||||
canAccess = currentUser => {
|
canAccess = currentUser => {
|
||||||
return groups ? currentUser && Users.isMemberOf(currentUser, groups) : currentUser;
|
return groups ? Users.isMemberOf(currentUser, groups) : currentUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
// redirect on constructor if user cannot access
|
// redirect on constructor if user cannot access
|
||||||
|
|
Loading…
Add table
Reference in a new issue