public class AdminIssueLockoutFlagManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FLAG
The flag ID displayed in the UI.
|
Constructor and Description |
---|
AdminIssueLockoutFlagManager(GlobalPermissionManager globalPermissionManager,
FlagDismissalService flagDismissalService,
ApplicationRoleManager applicationRoleManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAdminWithoutIssuePermission(ApplicationUser user)
Return
true if the passed user is an admin that does not have access to projects and issues. |
void |
removeDismissalOnLogin(LoginEvent loginEvent)
At each login we check if the user is an admin.
|
public static final String FLAG
@Inject public AdminIssueLockoutFlagManager(GlobalPermissionManager globalPermissionManager, FlagDismissalService flagDismissalService, ApplicationRoleManager applicationRoleManager)
@EventListener public void removeDismissalOnLogin(LoginEvent loginEvent)
loginEvent
- the user that just logged in.public boolean isAdminWithoutIssuePermission(ApplicationUser user)
true
if the passed user is an admin that does not have access to projects and issues.user
- the user to check.true
if the passed user is an admin who does not have access to any projects or issues.Copyright © 2002-2018 Atlassian. All Rights Reserved.