Skip to content

Commit

Permalink
governance authrizations back in game :)
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Sep 13, 2018
1 parent 3df89de commit 550b209
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Expand Up @@ -16,6 +16,7 @@
package com.evolveum.midpoint.web.component.objectdetails;

import java.util.List;
import java.util.Map;

import javax.xml.namespace.QName;

Expand Down Expand Up @@ -304,6 +305,11 @@ public AbstractRoleMemberPanel<R> createGovernancePanel(String panelId) {
protected List<QName> getSupportedRelations() {
return WebComponentUtil.getCategoryRelationChoices(AreaCategoryType.GOVERNANCE, getDetailsPage());
}

@Override
protected Map<String, String> getAuthorizations(QName complexType) {
return GuiAuthorizationConstants.GOVERNANCE_MEMBERS_AUTHORIZATIONS;
}

};
}
Expand Down
Expand Up @@ -131,7 +131,7 @@ protected enum MemberOperation {


protected static final String ID_SEARCH_BY_RELATION = "searchByRelation";
// private TableId tableId;

private static Map<QName, Map<String, String>> authorizations = new HashMap<>();
private static Map<QName, TableId> tablesId = new HashMap<>();

Expand Down Expand Up @@ -249,7 +249,7 @@ private TableId getTableId(QName complextType) {
return tablesId.get(complextType);
}

private Map<String, String> getAuthorizations(QName complexType) {
protected Map<String, String> getAuthorizations(QName complexType) {
return authorizations.get(complexType);
}

Expand Down

0 comments on commit 550b209

Please sign in to comment.