oauth2: all paths does not require a scope
This commit is contained in:
@@ -21,9 +21,7 @@ SwaggerUi.Models.Oauth2Model = Backbone.Model.extend({
|
||||
},
|
||||
|
||||
validate: function () {
|
||||
var valid = _.findIndex(this.get('scopes'), function (o) {
|
||||
return o.checked === true;
|
||||
}) > -1;
|
||||
var valid = true;
|
||||
|
||||
this.set('valid', valid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user