I'm new to Meteor and just walked through the To-Do list tutorial available here (<https://www.meteor.com/tutorials/blaze/creating-an-app>). I removed autopublish and set the display function in such a way that all tasks were private (that is, users could see only see their own tasks.)

Now, I'd like to change it up and set one account as an admin account. The admin can view everyone's tasks, but no one else can see anything (not even their own tasks). I'm trying to do this using the alanning-roles package, which I already downloaded in the app folder. 

In my tasks.js file, I've inserted the lines: 

```
const mod = 'E9Y4qtFXK2qQGAGq3'; // this is the userId of the account that I wish to make admin
Roles.addUsersToRoles(mod, 'moderator');

```

Then, instead of just displaying all the tasks, I enclose the command to display all tasks in an if-statement:

```
if (Meteor.isServer) {
  if (Roles.userIsInRole(this.userId,'moderator')) {
     Meteor.publish('tasks', function tasksPublication() {
     return Tasks.find();
    });
  }
}

```

This should display all tasks if you are logged in as the moderator/admin, and nothing otherwise. But when I run this code, no tasks show up even when I am logged in as the admin. I am certain that the userId I set is correct, and that there are tasks in the collection. Does anyone have any ideas of what the problem might be?

(Or, any other suggestions on how to do this? Doesn't have to use alanning-roles -- I just thought that would be simplest)

Thanks so much
-C

EDIT: If I replace "this.userId" with "mod" in the line:

```
if (Roles.userIsInRole(this.userId,'moderator')){...}

```

then all the tasks appear. So it appears that the problem is with the output of this.userId.