Class PermissionCheckBean

java.lang.Object
com.atlassian.jira.web.bean.PermissionCheckBean

public class PermissionCheckBean extends Object
This bean class allows for "concise" permission checks to be made. Its therefore useful in jsp/velocity contexts for check that the user has permission to see something and hence the UI can be adjusted appropriately.
Since:
v3.12
  • Constructor Details

  • Method Details

    • isIssueVisible

      public boolean isIssueVisible(Issue issue)
      Returns true if the user has permission to Permissions.BROWSE the issue
      Parameters:
      issue - the issue in question to be checked
      Returns:
      true if the user has permission to Permissions.BROWSE the issue.
      Throws:
      IllegalArgumentException - if the issue object is nhull
    • isAdmin

      public boolean isAdmin()
      Tells whether the configured user (if any) has admin permission.
      Returns:
      true only if the user is an administrator.