Corretly hide "no permissions" message in controls in viewer mode

Fixes #5622