Fix authored message when snippet is viewed by unauthenticated users
What does this MR do?
Issue: #220303 (closed)
Fix authored message when snippet is viewed by unauthenticated users
Unauthenticated users cannot view author information for public snippets if public profiles are disabled in the admin area. So for those cases, just display the creation time and omit the author information. (Instead of omitting the entire message right now due to a console error.)
How to test locally
-
Restrict public visibility in
Admin > Settings > General > Visibility and Access Controls
: -
Open any public snippet in incognito.
Screenshots
Does this MR meet the acceptance criteria?
Conformity
Edited by Himanshu Kapoor