Update access.html.erb

added an if condition #274