CLOUDSTACK-7463: UI: Domain Admin UI shows 'Add LDAP Users' button (should not be shown)

Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>
(cherry picked from commit c200ada863)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	ui/scripts/accounts.js
This commit is contained in:
Gabor Apati-Nagy 2014-09-02 10:26:54 +01:00 committed by Rohit Yadav
parent dc80b25361
commit 898b2e700e
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@
label: 'Add LDAP Account',
isHeader: true,
preFilter: function(args) {
if ((isAdmin() || isDomainAdmin()) && isLdapEnabled()) {
//if (isAdmin() && true) { //for testing only
if (isAdmin() && isLdapEnabled()) {
return true;
} else {
return false;