Hello. I have a manager here and he is allways want to full control on everywhere but sometimes he dis something wrong. So i want to hide root account of me and he cannot touch that even if he got full control...
Can i simply achive it on one sql
select when username <> 'xxx' ?
in an another project there is two type of admin. one is root admin and it is not visible and only can setup at install time.
or how can hide in user preferences "manager" option. (in account preferences)
It is possible what you ask. You only need to modify the code. Best thing would be to prefix such users with x so you can hide all users beginning with x :-). Most clean way would be to add a field in the database to hide a user. And you need to test whether you are logged on, so you can edit yourself :-).
Anyway, in your case, the simplest thing to do, is to export the user and contacts table for your record and simply import them when something goes wrong.
i can modidy the code but which files. Im not very good on MVC coding techniq. I know Php but in old pascal style coding.
So I can find the user table and add that field but i dont know wich files i have to modify.
Maybe you can think about hidden admin situation. It has only the role of setup program. Via this way i can relax.