1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/5b95febb92c6/ Changeset: 5b95febb92c6 User: guerler Date: 2013-10-14 21:11:49 Summary: Upload box add user validation Affected #: 2 files diff -r 43cc213c5d8e531a2c31d06531a7566c2df43366 -r 5b95febb92c60babdc94882700124a8467662cf4 static/scripts/galaxy.upload.js --- a/static/scripts/galaxy.upload.js +++ b/static/scripts/galaxy.upload.js @@ -57,6 +57,10 @@ return; } + // check if logged in + if (!Galaxy.currUser.get('id')) + return; + // add activate icon var self = this; this.button_show = new mod_master.GalaxyMasterIcon ( diff -r 43cc213c5d8e531a2c31d06531a7566c2df43366 -r 5b95febb92c60babdc94882700124a8467662cf4 static/scripts/utils/galaxy.uploadbox.js --- a/static/scripts/utils/galaxy.uploadbox.js +++ b/static/scripts/utils/galaxy.uploadbox.js @@ -24,7 +24,8 @@ error_filesize : "File exceeds 2GB. Please use an FTP client.", error_default : "Please make sure the file is available.", error_server : "The server is unavailable.", - error_toomany : "You can only queue <20 files per upload session." + error_toomany : "You can only queue <20 files per upload session.", + error_login : "Uploads require you to log in." } // options @@ -292,7 +293,13 @@ { // format error var text = xhr.statusText; - if (!xhr.statusText) { + + // format status + if (xhr.status == 403) + text = opts.error_login; + + // text + if (!text) { if (xhr.status == 0) text = opts.error_server; else Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.