Implemented user role checks to knockout viewmodel.