class DocumentPermissionRules extends BasePermissionRules {

    @PermissionRule(value = "DOWNLOAD_DOCUMENT", description = "Stakeholder can download document")
    public boolean stakeholderCanDownloadDocument(ProjectResource project, UserResource user) {
        return userIsStakeholderOnProject(project, user) && areDocumentsApproved(project);
    }

}