a1dert/lh-tickets-test — Issue #496: Employee can upgrade himself/herself to line manager.
Author: a1dert
Created: 2011-11-30 12:23:59+00:00
State: open

Imported from lighthouse. Original ticket at: http://redtape.lighthouseapp.com/projects/59696/tickets/61. Created by Adina Moldovan - 2010-11-17T13:00:44Z

Steps to reproduce:
1.Log in as a simple employee
2.Click on Settings
3.Click on "Edit data" button
4.Select something from the "Line Manager" drop down list

Expected results:
The employee shouldn't be allowed to select himself as a line manager when he's a simple employee. Only true line managers should be available in the list. Only administrator should have the ability to upgrade any user to line manager

Actual results:
The user can upgrade himself as line manager by selecting his user that is incorrectly available in the dropdown.