@Internal public class IsAdminCondition extends Object implements com.atlassian.plugin.web.Condition
UserIsAdminCondition
does, but retrieves logged user from JiraAuthenticationContext
; This is temporary workaround to make this condition working
with dashboard-item, as currently dashboard-plugin does not pass correct context parameters. This class will be
removed once https://ecosystem.atlassian.net/browse/AG-1466 is resolved.Constructor and Description |
---|
IsAdminCondition(JiraAuthenticationContext authenticationContext,
GlobalPermissionManager permissionManager) |
Modifier and Type | Method and Description |
---|---|
void |
init(Map<String,String> params) |
boolean |
shouldDisplay(Map<String,Object> context) |
public IsAdminCondition(JiraAuthenticationContext authenticationContext, GlobalPermissionManager permissionManager)
Copyright © 2002-2019 Atlassian. All Rights Reserved.