The project read handler left MaxPermission at its zero value when expand=permissions was not requested, which serialised as 0 (PermissionRead) instead of being omitted. Force PermissionUnknown so the field marshals as null, matching the list operation's behaviour and avoiding a misleading read permission for projects the caller may own. Assert the null shape in the ReadOne/Normal webtest. |
||
|---|---|---|
| .. | ||
| scalar | ||
| admin_projects.go | ||
| avatar.go | ||
| avatar_upload.go | ||
| docs.go | ||
| errors.go | ||
| errors_test.go | ||
| huma.go | ||
| labels.go | ||
| project_views.go | ||
| projects.go | ||
| registry.go | ||
| task_comments.go | ||
| task_duplicate.go | ||
| teams.go | ||
| types.go | ||