Skip to content

Commit

Permalink
small sid code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Oct 12, 2018
1 parent 705f158 commit ccecceb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/js/base/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ ripe.Ripe.prototype._build = function(options) {
var method = options.method || "GET";
var params = options.params || {};
var auth = options.auth || false;
if (auth !== undefined && auth !== null) {
if (auth && this.sid !== undefined && this.sid !== null) {
params.sid = this.sid;
}
options.url = url;
Expand Down
2 changes: 1 addition & 1 deletion src/js/ripe-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/js/ripe.js
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ ripe.Ripe.prototype._build = function(options) {
var method = options.method || "GET";
var params = options.params || {};
var auth = options.auth || false;
if (auth !== undefined && auth !== null) {
if (auth && this.sid !== undefined && this.sid !== null) {
params.sid = this.sid;
}
options.url = url;
Expand Down
2 changes: 1 addition & 1 deletion src/python/ripe_demo/static/js/ripe.js
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ ripe.Ripe.prototype._build = function(options) {
var method = options.method || "GET";
var params = options.params || {};
var auth = options.auth || false;
if (auth !== undefined && auth !== null) {
if (auth && this.sid !== undefined && this.sid !== null) {
params.sid = this.sid;
}
options.url = url;
Expand Down

0 comments on commit ccecceb

Please sign in to comment.