Add Model.requireToken for disabling token requirement

This commit is contained in:
Ritchie Martori 2013-12-06 12:09:52 -08:00
parent 4c69af5ae2
commit bc27f07472
1 changed files with 1 additions and 0 deletions

View File

@ -188,6 +188,7 @@ app.enableAuth = function() {
); );
} else if( } else if(
Model.requireToken === false || Model.requireToken === false ||
Model.settings.requireToken === false ||
method.fn && method.fn.requireToken === false method.fn && method.fn.requireToken === false
) { ) {
next(); next();