refactoring: renaming

This commit is contained in:
Torkel Ödegaard
2017-06-19 18:19:58 -04:00
parent aaf2a897b0
commit e290015887
4 changed files with 12 additions and 12 deletions

View File

@@ -38,7 +38,7 @@ func PostDashboardAcl(c *middleware.Context, cmd m.SetDashboardAclCommand) Respo
cmd.DashboardId = dashId
if err := bus.Dispatch(&cmd); err != nil {
if err == m.ErrDashboardPermissionUserOrUserGroupEmpty {
if err == m.ErrDashboardAclInfoMissing {
return ApiError(409, err.Error(), err)
}
return ApiError(500, "Failed to create permission", err)