mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
163c91ffbe
commit
0ffa864c8f
2 changed files with 3 additions and 7 deletions
|
|
@ -181,7 +181,7 @@ func GetCaptcha(c *gin.Context) {
|
|||
}
|
||||
|
||||
func CheckReadonly(c *gin.Context) {
|
||||
if util.ReadOnly {
|
||||
if util.ReadOnly || IsReadOnlyRole(GetGinContextRole(c)) {
|
||||
result := util.NewResult()
|
||||
result.Code = -1
|
||||
result.Msg = Conf.Language(34)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue