diff --git a/stdlib/components/chat/chat.opa b/stdlib/components/chat/chat.opa index d8f8b7ac..bfbd3dd9 100644 --- a/stdlib/components/chat/chat.opa +++ b/stdlib/components/chat/chat.opa @@ -494,7 +494,11 @@ CChat = {{ "[%<:[%D:[#=1:yesterday :ago ]]]" @private @server - default_credentials(_username, _msg): CChat.credentials = read_only + default_credentials(username, msg): CChat.credentials = + if not(username == "anonymous") && username == msg.author then + read_edit + else + read_only @private @server default_admin_credentials(_username, _msg): CChat.credentials =