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 authored and Petr Voborník committed 2012-02-01 15:51:21 +01:00
1 parent ea9d5e6f9a
commit 0c4500738b
1 file changed
+7
+7
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() {