fix: Restrict access to closed tickets

When checking ticket access - only consider assignment IF the ticket is
open. This is required since staff_id field is overloaded to show who closed
the ticket.
Merge pull request #655 from protich/issue/access-to-closed-tickets

fix: Restrict access to closed tickets

Reviewed-By: Jared Hancock <jared@osticket.com>