Core:lib/user permission bugfix