mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Profile: Fixes profile preferences being accessible when anonymous access was enabled (#31516)
* Profile: Fixes profile preferences page being available when anonymous access was enabled * Minor change * Renamed property
This commit is contained in:
@@ -7,10 +7,6 @@ import (
|
||||
)
|
||||
|
||||
func StarDashboard(c *models.ReqContext) response.Response {
|
||||
if !c.IsSignedIn {
|
||||
return response.Error(412, "You need to sign in to star dashboards", nil)
|
||||
}
|
||||
|
||||
cmd := models.StarDashboardCommand{UserId: c.UserId, DashboardId: c.ParamsInt64(":id")}
|
||||
|
||||
if cmd.DashboardId <= 0 {
|
||||
|
||||
Reference in New Issue
Block a user