oauth2: all paths does not require a scope

This commit is contained in:
Christian Tellnes
2016-04-26 15:29:28 +02:00
parent b1358ba881
commit d89ed220df

View File

@@ -21,9 +21,7 @@ SwaggerUi.Models.Oauth2Model = Backbone.Model.extend({
}, },
validate: function () { validate: function () {
var valid = _.findIndex(this.get('scopes'), function (o) { var valid = true;
return o.checked === true;
}) > -1;
this.set('valid', valid); this.set('valid', valid);