Skip to content

Commit

Permalink
Allow the collaborator role when listing channels.
Browse files Browse the repository at this point in the history
  • Loading branch information
Manfred committed May 13, 2024
1 parent 2cd4b02 commit e17a564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/teletube/option_parser.cr
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module Teletube
parser.on("list", "List all owned channels.") do
context.command = "list"
parser.on("--role ROLE", "The role of the authenticated profile.") do |role|
if %w[owner contributor].includes?(role)
if %w[owner contributor collaborator].includes?(role)
context.params["role"] = JSON::Any.new(role)
else
context.errors << "Please specify either owner or contributor for the role."
Expand Down

0 comments on commit e17a564

Please sign in to comment.