Code Monkey home page Code Monkey logo

building-a-user-admin's People

Contributors

rglover avatar themeteorchef avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

building-a-user-admin's Issues

Wrap setting of environment vars in an if check for Meteor.settings

I downloaded this repo building-a-user-admin , installed locally here: C:\mA\chefUA
Checked all package dependencies, project seems complete.

Same error came up at ~ base ~ :
themeteorchef/base@54c1c1d

But there is different context here, in building-a-user-admin
I'm new to meteor and javascript too .. so can only guess what to suggest.

=> Exited with code: 8
W20151031-00:21:30.429(-4)? (STDERR) at _setEnvironmentVariables (server/modules/startup.js:10:34)
W20151031-00:21:30.429(-4)? (STDERR) TypeError: Cannot read property 'MAIL_URL' of undefined
W20151031-00:21:30.425(-4)? (STDERR)
W20151031-00:21:30.428(-4)? (STDERR) throw(ex);
W20151031-00:21:30.427(-4)? (STDERR) C:\Users\TEC\AppData\Local.meteor\packages\meteor-tool\1.1.10\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:245
W20151031-00:21:30.431(-4)? (STDERR) at C:\mA\chefUA.meteor\local\build\programs\server\boot.js:249:5
W20151031-00:21:30.428(-4)? (STDERR) ^
W20151031-00:21:30.430(-4)? (STDERR) at Object.startup (server/modules/startup.js:2:3)
W20151031-00:21:30.430(-4)? (STDERR) at server/startup.js:1:38

Missing path in article

The code block referencing the setRolesOnUser method just says /path for the title. This should be the actual path to the file :)

Use roles on publications

Thanks to a reader Wade for pointing this out.

Right now the users publication does not do any checking for roles. Because of this, you could technically subscribe to this publication and get full access to users. Need to add a check to ensure that only admins can see this.

Cannot read property 'group' of undefined

I integrated base and this recipe, but getting the following error

image

The code is:

Accounts.onLogin(() => {
  let currentRoute = FlowRouter.current();
  if (currentRoute && currentRoute.route.group.name === 'public') {
    Modules.both.redirectUser();
  }
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.