mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-25 08:24:06 +01:00
This commit is contained in:
parent
c9dcfafc68
commit
4e9b0bc6c6
5 changed files with 15 additions and 5 deletions
|
|
@ -54,3 +54,7 @@ func GetGinContextRole(c *gin.Context) Role {
|
|||
return RoleVisitor
|
||||
}
|
||||
}
|
||||
|
||||
func IsAdminRoleContext(c *gin.Context) bool {
|
||||
return GetGinContextRole(c) == RoleAdministrator
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue