Added some cancan checks to setting the checkbox