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:
@@ -1,10 +0,0 @@
|
||||
define([
|
||||
'backbone',
|
||||
'js/programs/utils/auth_utils'
|
||||
],
|
||||
function(Backbone, auth) {
|
||||
'use strict';
|
||||
|
||||
return Backbone.Collection.extend(auth.autoSync);
|
||||
}
|
||||
);
|
||||
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user