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){
return Backbone.Model.extend({
initialize: function(){
//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);
},
......
......@@ -18,4 +18,7 @@ DATABASES = {
},
}
SENDFILE_BACKEND = 'sendfile.backends.development'
\ No newline at end of file
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