trailsjs / sails-permissions

Comprehensive user permissions and entitlements system for sails.js and Waterline. Supports user authentication with passport.js, role-based permissioning, object ownership, and row-level security.
MIT License
418 stars 113 forks source link

ReferenceError: sails is not defined #245

Closed brylie closed 7 years ago

brylie commented 7 years ago

When following the steps in the README, I am having difficulty setting up local.js. I am getting errors related to sails not being defined:

Details:ReferenceError: sails is not defined

and...

sails.config.permissions.adminUsername = 'admin',
     ^
SyntaxError: Unexpected token .

Where should I put the initial admin configuration object, inside of module.exports?

nathanBrenner commented 7 years ago

Getting the same error

tjwebb commented 7 years ago

What version of sails?