TW-27034
Added premission checking + view/edit links accourding to permissions