There is the method of preventing change of profile in addition to the method of preventing login. If you added filter plugin, it is not necessary to hack of Q2A core, and I think that appearance is also finely realizable.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.