mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel
This commit is contained in:
commit
85c57c4beb
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