mirror of
https://github.com/luthermonson/go-proxmox.git
synced 2026-04-26 09:25:53 +03:00
[PR #216] [MERGED] fix(access): 🐛 add useroptions type and fix user update function #220
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-proxmox#220
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/luthermonson/go-proxmox/pull/216
Author: @kernel-sanders
Created: 9/11/2025
Status: ✅ Merged
Merged: 9/23/2025
Merged by: @luthermonson
Base:
main← Head:user-update-fix📝 Commits (1)
ee6eebcfix(access): 🐛 fix user update function📊 Changes
2 files changed (+14 additions, -2 deletions)
View changed files
📝
access.go(+2 -2)📝
types.go(+12 -0)📄 Description
The user update function PUTs data that is different from the user object returned from the GET to /access/users/{userid}. Thus a UserOptions struct was created and used in the user Update function. You only need to send the fields you wish to be updated. See https://pve.proxmox.com/pve-docs/api-viewer/#/access/users/{userid} for the API documentation.
Fixes #215
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.