In access configuration of a course it is possible to make sttings which don't make sense, e.g. to allow users to access the course but don't allow it to authors. The attached patch enhances the handling with the access configuration.
It also avoids the default setting that guests are allowed to access the resource. This should only be allowed to registered users by default.