Storage: use static access rules (#52334)
* Storage: use static access rules * Storage: use static access rules * Storage: add tests
This commit is contained in:
@@ -28,3 +28,8 @@ func getPathAndScope(c *models.ReqContext) (string, string) {
|
||||
}
|
||||
return splitFirstSegment(path)
|
||||
}
|
||||
|
||||
func getFirstSegment(path string) string {
|
||||
firstSegment, _ := splitFirstSegment(path)
|
||||
return firstSegment
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user