(myRole int, targetRole int)
| 344 | } |
| 345 | |
| 346 | func canManageTargetRole(myRole int, targetRole int) bool { |
| 347 | return myRole == common.RoleRootUser || myRole > targetRole |
| 348 | } |
| 349 | |
| 350 | func GetUser(c *gin.Context) { |
| 351 | id, err := strconv.Atoi(c.Param("id")) |
no outgoing calls
no test coverage detected