Skip to content
Snippets Groups Projects
Unverified Commit d64c15ea authored by Samuel Couillard's avatar Samuel Couillard Committed by GitHub
Browse files

Fix Recording Visibility creator (#5038)

parent 5fddf82e
No related branches found
No related tags found
No related merge requests found
......@@ -48,9 +48,9 @@ class RecordingCreator
# Returns the visibility of the recording (published, unpublished or protected)
def get_recording_visibility(recording:)
return 'Protected' if recording[:protected] == 'true'
return 'Protected' if recording[:protected].to_s == 'true'
return 'Published' if recording[:published] == 'true'
return 'Published' if recording[:published].to_s == 'true'
'Unpublished'
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment