Added permissions checking to ctnr_detail view