Skip to content

Commit 768a99b

Browse files
tphoneyactions-user
authored andcommitted
fix, cli submit signal match start/end change permissions (#2572)
GitOrigin-RevId: 471e8f0b045080d1ddadd89e7767bc7c099932a3
1 parent 4ea9d98 commit 768a99b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/changes_submit_signal.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var submitSignalCmd = &cobra.Command{
2323
func SubmitSignal(cmd *cobra.Command, args []string) error {
2424
ctx := cmd.Context()
2525

26-
ctx, oi, _, err := login(ctx, cmd, []string{"changes:write", "api:write"}, nil)
26+
ctx, oi, _, err := login(ctx, cmd, []string{"changes:write"}, nil)
2727
if err != nil {
2828
return err
2929
}
@@ -38,7 +38,7 @@ func SubmitSignal(cmd *cobra.Command, args []string) error {
3838
if viper.GetString("description") == "" {
3939
return flagError{"--description is required"}
4040
}
41-
changeUUID, err := getChangeUuid(ctx, oi, sdp.ChangeStatus(sdp.ChangeStatus_value[viper.GetString("status")]), viper.GetString("ticket-link"), true)
41+
changeUUID, err := getChangeUuid(ctx, oi, sdp.ChangeStatus_CHANGE_STATUS_DEFINING, viper.GetString("ticket-link"), true)
4242
if err != nil {
4343
return loggedError{
4444
err: err,

0 commit comments

Comments
 (0)