If you open a world where you have cheats to lan, and you set cheats to not allowed, you can still use commands. But that is not the problem. The problem is that if you were to use F3+N
on that same lan-world it would say: Unable to switch gamemode, no permission
I know it says 1.10.2, but I tested in 1.11 snapshots and I can use it fine, so it has been fixed before.Edit: nvm, did something wrong.
Confirmed.