Storage: use static access rules (#52334)

* Storage: use static access rules

* Storage: use static access rules

* Storage: add tests
This commit is contained in:
Artur Wierzbicki
2022-07-17 22:41:54 +04:00
committed by GitHub
parent e6a5b9ee7f
commit 6188526e1d
8 changed files with 319 additions and 52 deletions
+5
View File
@@ -28,3 +28,8 @@ func getPathAndScope(c *models.ReqContext) (string, string) {
}
return splitFirstSegment(path)
}
func getFirstSegment(path string) string {
firstSegment, _ := splitFirstSegment(path)
return firstSegment
}