fix in permissions-plugin (add user func)