mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
f293933802
commit
8bdd59a156
4 changed files with 14 additions and 2 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