Fix bug #34604 also update single repository permission to only take permission object, and use the URI from such object.