Api: Readonly datasources should not be created via the API (#19006)
* Readonly datasources should not be created via the API * Return correct `ReadOnly` value in GetDataSourceByName
This commit is contained in:
@@ -231,7 +231,6 @@ func GetDataSourceByName(c *m.ReqContext) Response {
|
||||
}
|
||||
|
||||
dtos := convertModelToDtos(query.Result)
|
||||
dtos.ReadOnly = true
|
||||
return JSON(200, &dtos)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user