mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
committed by
Petr Voborník
parent
ea9d5e6f9a
commit
0c4500738b
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user