Disable dev and player commands for observers

Fixes #6839
Merge pull request #7158 from obrakmann/fix6839_part2

Disable dev and player commands for observers