Using a Mercurial repository of a different user with a .hgrc file ends in Not trusting file /repo/.hg/hgrc from untrusted user me, group mygroup

When you access a Mercurial repository of a different user, you get an error for security reasons.
 
Not trusting file /repo/.hg/hgrc from untrusted user me, group mygroup
It could be possible to parametrize actions in the hgrc File, which the
user working with hg does not want.

In my case, the other use is a working user, so I trust the file and the settings
in the repository, so a configured my  ~/.hgrc by an additional section:

 
[trusted]
users = *
groups = *


I got this info from here.