Hide Add/Delete buttons in self-service mode.

Users do not have add/delete permission in self-service mode, so
the search facet was modified to hide the Add/Delete buttons.

Ticket #2188
This commit is contained in:
Endi Sukma Dewata
2012-01-31 10:44:34 -06:00
committed by Petr Voborník
parent ea9d5e6f9a
commit 0c4500738b

View File

@@ -114,6 +114,13 @@ IPA.search_facet = function(spec) {
return false;
}
}).appendTo(that.controls);
var self_service = IPA.nav.name === 'self-service';
if (self_service) {
that.remove_button.css('display', 'none');
that.add_button.css('display', 'none');
}
};
that.show = function() {