Browse files

[enhance] CChat: default credentials changed to allow users to edit t…

…heir own posts
  • Loading branch information...
1 parent 76a7ade commit c0e0963952f8d43da1f78c79d0b7984b577c0b3d Guillem Rieu committed Jun 30, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 stdlib/components/chat/chat.opa
View
6 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 =

0 comments on commit c0e0963

Please sign in to comment.