//Helper method. Check if User is an Author of a Paste or Admin
        private bool IsAuthorised(CodeModel code)
        {
            var isAdmin  = this.User.IsInRole("Admin");
            var isAuthor = code.IsAuthor(this.User.Identity.GetUserId());

            return(isAdmin || isAuthor);
        }