added checking of staff status to admin pages