Permissions: fixed saving groups.
Merge branch 'master' into console