Created
September 28, 2023 13:55
-
-
Save vikrantyadav11/cfe7ffa13070b5cf5ac747c22ed90b16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.atlassian.jira.component.ComponentAccessor | |
def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser() | |
return ComponentAccessor.getGroupManager().isUserInGroup(currentUser,"jira-admin") || ComponentAccessor.getGroupManager().isUserInGroup(currentUser,"jira-users") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment