Class AdminIssueLockoutFlagManager

java.lang.Object
com.atlassian.jira.security.AdminIssueLockoutFlagManager

public class AdminIssueLockoutFlagManager extends Object
An Administrator will be locked out of issues and projects if they do not have access to an application. We will warn the administrators of such a configuration with a UI flag. This class provides come common utility methods to help with the implementation of this flag.
Since:
v7.0
  • Field Details

  • Constructor Details

  • Method Details

    • removeDismissalOnLogin

      @EventListener public void removeDismissalOnLogin(LoginEvent loginEvent)
      At each login we check if the user is an admin. If they have access to an application we clear the dismissal flag so that the flag will display again if that admin loses application access. We don't want the dismissal to be permanent.
      Parameters:
      loginEvent - the user that just logged in.
    • isAdminWithoutIssuePermission

      public boolean isAdminWithoutIssuePermission(ApplicationUser user)
      Return true if the passed user is an admin that does not have access to projects and issues.
      Parameters:
      user - the user to check.
      Returns:
      true if the passed user is an admin who does not have access to any projects or issues.