docs: function(session) {
          if (session && session.user) {
              if (session.user.roles)
                  return { roles: session.user.roles };
              return { roles: "user" };
          }
          return { roles: "public" };
      }