code: func (d *Dashboard) GetDashboardIdForSavePermissionCheck() int64 {
  	if d.Id == 0 {
  		return d.FolderId
  	}
  
  	return d.Id
  }
docs: // GetDashboardIdForSavePermissionCheck return the dashboard id to be used for checking permission of dashboard