Permission check on viewing unassigned tickets
Refactor index view