public class ProjectShareTypePermissionChecker extends Object implements ShareTypePermissionChecker
ProjectShareType
Constructor and Description |
---|
ProjectShareTypePermissionChecker(ProjectManager projectManager,
InternalProjectPermissionHelper projectPermissionHelper,
ProjectRoleManager projectRoleManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasPermission(ApplicationUser user,
SharePermission permission)
If a role has been passed in, checks to see if the user is in that role for the given project.
|
public ProjectShareTypePermissionChecker(ProjectManager projectManager, InternalProjectPermissionHelper projectPermissionHelper, ProjectRoleManager projectRoleManager)
public boolean hasPermission(ApplicationUser user, SharePermission permission)
hasPermission
in interface ShareTypePermissionChecker
user
- The user to check permissions for.permission
- the permission to check against. Must have a project, role is optional.Copyright © 2002-2022 Atlassian. All Rights Reserved.