diff --git a/static/js/infoView.bakma.js b/static/js/infoView.bakma.js
index 2c906e0..0ad4b12 100644
--- a/static/js/infoView.bakma.js
+++ b/static/js/infoView.bakma.js
@@ -427,8 +427,11 @@ pandora.ui.infoView = function(data, isMixed) {
renderRightsLevel();
// User and Groups ---------------------------------------------------------
- if (!isMultiple) {
+ if (!isMultiple || pandora.hasCapability('canEditUsers')) {
['user', 'groups'].forEach(function(key) {
+ if (key == 'groups' && isMultiple) {
+ return
+ };
(canEdit || data[key] && data[key].length) && $('
')
.css({marginBottom: '4px'})
.append(formatKey(key, 'statistics'))
@@ -437,10 +440,14 @@ pandora.ui.infoView = function(data, isMixed) {
.css({margin: '2px 0 0 -1px'}) // fixme: weird
.append(
Ox.Editable({
- placeholder: key == 'groups' ? formatLight(Ox._('No Groups')) : '',
+ placeholder: key == 'groups'
+ ? formatLight(Ox._(isMixed[key] ? 'Mixed Groups' : 'No Groups'))
+ : isMixed[key] ? formatLight(Ox._('Mixed Users')) : '',
editable: canEdit,
tooltip: canEdit ? pandora.getEditTooltip() : '',
- value: key == 'user' ? data[key] : data[key].join(', ')
+ value: isMixed[key] || !data[key]
+ ? ''
+ : key == 'user' ? data[key] : data[key].join(', ')
})
.bindEvent({
submit: function(event) {