usersDialog: only show registered users as enabled

This commit is contained in:
rolux 2012-04-16 17:30:25 +00:00
parent 4f8d327fd5
commit 58215ca1a6

View file

@ -90,7 +90,7 @@ pandora.ui.usersDialog = function() {
visible: false,
},
{
format: function(value) {
format: function(value, data) {
return $('<img>')
.attr({
src: Ox.UI.getImageURL('symbolCheck')
@ -99,7 +99,9 @@ pandora.ui.usersDialog = function() {
width: '10px',
height: '10px',
padding: '3px',
opacity: value ? 0 : 1
opacity: value || [
'guest', 'robot'
].indexOf(data.level) > 1 ? 0 : 1
});
},
id: 'disabled',