Skip to content

Commit

Permalink
chore: dashboard locking ee query-service (#3890)
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthccv authored Nov 3, 2023
1 parent 123f2e7 commit 8371670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/query-service/app/api/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (ah *APIHandler) lockUnlockDashboard(w http.ResponseWriter, r *http.Request
}

user := common.GetUserFromContext(r.Context())
if !auth.IsAdmin(user) || (dashboard.CreateBy != nil && *dashboard.CreateBy != user.Email) {
if !auth.IsAdmin(user) && (dashboard.CreateBy != nil && *dashboard.CreateBy != user.Email) {
RespondError(w, &model.ApiError{Typ: model.ErrorForbidden, Err: err}, "You are not authorized to lock/unlock this dashboard")
return
}
Expand Down

0 comments on commit 8371670

Please sign in to comment.