Issue IKTREDEL-12 by cableman: Fixed coding style and minor bugs in access check