Accept 'open' string in templated auth as authorized
This commit is contained in:
@@ -398,6 +398,10 @@ o.isAuthorized = function(template, authTokens) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (_.isString(templateAuth) && templateAuth === 'open') {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (templateAuth.method === 'open') {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user