Merge pull request #14058 from edx/schen/ECOM-6396

Remove JWT authentication validator to fix program editor on studio bug
This commit is contained in:
Simon Chen
2016-11-29 14:24:36 -05:00
committed by GitHub
2 changed files with 3 additions and 14 deletions

View File

@@ -1,10 +0,0 @@
define([
'backbone',
'js/programs/utils/auth_utils'
],
function(Backbone, auth) {
'use strict';
return Backbone.Collection.extend(auth.autoSync);
}
);

View File

@@ -2,19 +2,18 @@ define([
'backbone',
'jquery',
'js/programs/utils/api_config',
'js/programs/collections/auto_auth_collection',
'jquery.cookie'
],
function(Backbone, $, apiConfig, AutoAuthCollection) {
function(Backbone, $, apiConfig) {
'use strict';
return AutoAuthCollection.extend({
return Backbone.Collection.extend({
allRuns: [],
initialize: function(models, options) {
// Ignore pagination and give me everything
var orgStr = options.organization.key,
queries = '?org=' + orgStr + '&username=' + apiConfig.get('username') + '&page_size=1000';
queries = '?org=' + orgStr + '&page_size=1000';
this.url = apiConfig.get('lmsBaseUrl') + 'api/courses/v1/courses/' + queries;
},