Gitlab CSE Unil

Commit f60292fd authored by Julien Furrer's avatar Julien Furrer
Browse files

minor bug fix

Wrong conditional testing in ImgMgr
parent 77d3ca3d
...@@ -29,7 +29,7 @@ function(_, Backbone, Config){ ...@@ -29,7 +29,7 @@ function(_, Backbone, Config){
return Backbone.Model.extend({ return Backbone.Model.extend({
initialize: function(){ initialize: function(){
//this.owned = Config && Config.user ? (this.get('owner') === Config.user.id) : false; //this.owned = Config && Config.user ? (this.get('owner') === Config.user.id) : false;
this.owned = Config && Config.users ? (this.get('owners').indexOf(Config.user.id) > -1) : false; this.owned = Config && Config.user ? (this.get('owners').indexOf(Config.user.id) > -1) : false;
this.set('owned', this.owned); this.set('owned', this.owned);
}, },
......
...@@ -19,3 +19,6 @@ DATABASES = { ...@@ -19,3 +19,6 @@ DATABASES = {
} }
SENDFILE_BACKEND = 'sendfile.backends.development' SENDFILE_BACKEND = 'sendfile.backends.development'
ADIM_PROD = False
ADIM_DEBUG_JS = True
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment