Commit 0efdd753 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Fix create vm view images filtering in cyclades ui

use the new synnefo.user method `get_username` to populate
personal/shared images.
parent 502ac2d1
......@@ -127,7 +127,7 @@
get_personal_images: function() {
return _.filter(this.active(), function(i) {
return i.get_owner_uuid() == snf.user.username;
return i.get_owner_uuid() == snf.user.get_username();
});
},
......@@ -139,7 +139,7 @@
return _.filter(this.active(), function(i){
return !_.include(_.keys(snf.config.system_images_owners),
i.get_owner()) &&
i.get_owner_uuid() != snf.user.username &&
i.get_owner_uuid() != snf.user.get_username() &&
!i.is_public();
});
}
......
Markdown is supported
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