Skip to content

Commit

Permalink
[enhance] CChat: default credentials changed to allow users to edit t…
Browse files Browse the repository at this point in the history
…heir own posts
  • Loading branch information
Guillem Rieu committed Jun 30, 2011
1 parent 76a7ade commit c0e0963
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stdlib/components/chat/chat.opa
Expand Up @@ -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 =
Expand Down

0 comments on commit c0e0963

Please sign in to comment.