Gitlab CSE Unil
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
M. Chardon
ADIM
Commits
f60292fd
Commit
f60292fd
authored
Apr 28, 2015
by
Julien Furrer
Browse files
minor bug fix
Wrong conditional testing in ImgMgr
parent
77d3ca3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
adim_project/adim_app/static/_src/anobj-mgr/models/AnObj.js
View file @
f60292fd
...
...
@@ -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
.
user
s
?
(
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
);
},
...
...
adim_project/adim_project/settings/local.py
View file @
f60292fd
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment