Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Default role issue
Browse files Browse the repository at this point in the history
Fixes a typo causing default role not to be applied
  • Loading branch information
FilipDusek authored May 27, 2017
1 parent 9661e93 commit 7bb4ca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/nacl.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function config(config, response) {
opt.response = response;
opt.baseUrl = options.baseUrl;
opt.decodedObjectName = options.decodedObjectName;
opt.defautRole = options.defautRole || 'guest';
opt.defaultRole = options.defautRole || 'guest';

if (options.rules) {
opt.rules = utils.validate(options.rules);
Expand Down Expand Up @@ -70,7 +70,7 @@ function authorize(req, res, next) {
* @type {[type]}
*/

let role = helper.getRole(req, res, opt.decodedObjectName, opt.defautRole);
let role = helper.getRole(req, res, opt.decodedObjectName, opt.defaultRole);

if (!_.isString(role) || !role) return;

Expand Down

0 comments on commit 7bb4ca4

Please sign in to comment.