bugfixes for permissions
flash warning when deleting role with users.