Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…heir own posts
  • Loading branch information...
commit c0e0963952f8d43da1f78c79d0b7984b577c0b3d 1 parent 76a7ade
Guillem Rieu authored
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.
Something went wrong with that request. Please try again.