a1dert/lh-tickets-test — Issue #445: Email notification is incorrectly  sent to admin for any holiday request
Author: a1dert
Created: 2011-11-30 12:17:51+00:00
State: open
Labels: 157-p

Imported from lighthouse. Original ticket at: http://redtape.lighthouseapp.com/projects/59696/tickets/80. Created by Adina Moldovan - 2010-12-21T15:26:35Z

Steps to reproduce:
1.Log into the app as any kind of user
2.Go to Holidays page and post a holiday request
4.Make sure that the account has at least two teams.
3.Log in as line/team manager and check the email inbox

Expected results:
The manager receives the notification email saying that user x posted a new request. The second team/line manager shouldn't receive the same notification email.Also The Administrator should not receive any notification email if (s)he isn't selected as line manager for any of the users.

Actual results:
The admin receives the notification email even if (s)he isn't selected as a manager for any team or user(line manager).
So the admin will get all the emails for all the requests.