mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-12-19 19:57:09 +08:00
添加只读用户角色,不能创建、编辑,只能被设置为观察者 (#992)
* 添加只读用户角色,不能创建、编辑,只能被设置为观察者 * Update markdown.preview.css toc隐藏的时候,article宽度为100% * Update cherry-markdown.css cherry样式,隐藏toc时宽度100% * 发布pdf时候的默认发布者(项目填写了公司名称以公司名称为准) * 验证只读用户权限
This commit is contained in:
@@ -61,7 +61,7 @@ func (m *MemberRelationshipResult) ResolveRoleName(lang string) *MemberRelations
|
||||
} else if m.RoleId == conf.BookEditor {
|
||||
m.RoleName = i18n.Tr(lang, "common.editor")
|
||||
} else if m.RoleId == conf.BookObserver {
|
||||
m.RoleName = i18n.Tr(lang, "common.obverser")
|
||||
m.RoleName = i18n.Tr(lang, "common.observer")
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user