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

Fixes #5622

Please review @jancborchardt @schiesbn @karlitschek @Julian1998