add - csharp mvc - anonymous without permissions.chat

This commit is contained in:
Andrey Yumatov
2022-06-14 19:53:12 +03:00
parent 7f54659d3b
commit 2031d65adb
2 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,8 @@ namespace OnlineEditorsExampleMVC.Helpers
"Can't mention others in comments",
"Can't create new files from the editor",
"Cant see anyones information",
"Can't rename files from the editor"
"Can't rename files from the editor",
"Can't view chat",
};
private static List<User> users = new List<User>() {

View File

@ -148,6 +148,7 @@ namespace OnlineEditorsExampleMVC.Models
{ "modifyFilter", editorsMode != "filter" },
{ "modifyContentControl", editorsMode != "blockcontent" },
{ "review", canEdit && (editorsMode == "edit" || editorsMode == "review") },
{ "chat", !user.id.Equals("uid-0") },
{ "reviewGroups", user.reviewGroups },
{ "commentGroups", user.commentGroups },
{ "userInfoGroups", user.userInfoGroups }