Skip to content

Commit f90fc88

Browse files
committed
fixed typo
1 parent 1d02678 commit f90fc88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/org_admin/templates_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def parse_visibility(args, org)
386386
# If present, we parse to retrieve the value
387387
if args[:visibility].nil?
388388
org.funder? ? Template.visibilities[:publicly_visible] : Template.visibilities[:organisationally_visible]
389-
elsif args.fetch(:visibility, '0') == '1'
389+
elsif ['0', 'organisationally_visible'].include?(args.fetch(:visibility, 'publicly_visible'))
390390
Template.visibilities[:organisationally_visible]
391391
else
392392
Template.visibilities[:publicly_visible]

0 commit comments

Comments
 (0)