class ApplicationInvitePermissionRules {

    @PermissionRule(value = "SEND", description = "collaborator can invite to the application for thier organisation")
    public boolean collaboratorCanInviteToApplicationForTheirOrganisation(final ApplicationInvite invite, final UserResource user) {
        return applicationIsEditable(invite.getTarget()) && isCollaboratorOnInvite(invite, user);
    }

}