Permissionsroles fixes #71

see #71 for more details  @mapesa merge