Bugfix - added a check to see if it is the home page we are editing, if so check against the permissions.