Skip to content

Commit 0aceee2

Browse files
authored
Don't override non-nil PermissionsProfile (#1034)
1 parent fc1c8b1 commit 0aceee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/api/v1/workloads.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func (s *WorkloadRoutes) createWorkload(w http.ResponseWriter, r *http.Request)
227227

228228
// Mimic behavior of the CLI by defaulting to the "network" permission profile.
229229
// TODO: Consider moving this into the run config creation logic.
230-
if req.PermissionProfile != nil {
230+
if req.PermissionProfile == nil {
231231
req.PermissionProfile = permissions.BuiltinNetworkProfile()
232232
}
233233

0 commit comments

Comments
 (0)