mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Fix permissions problem when not logged in.
This commit is contained in:
parent
7361ad915b
commit
718f538ef4
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
isAdmin=function(userOrId){
|
||||
var user= typeof userOrId === 'string' ? Meteor.users.findOne(userOrId) : userOrId;
|
||||
return user.isAdmin;
|
||||
return user && user.isAdmin;
|
||||
}
|
Loading…
Add table
Reference in a new issue