dashfolders: remove role requirements on dashboard routes

and rely on the permission system instead.
This commit is contained in:
Daniel Lee
2017-12-20 14:42:09 +01:00
parent f7bbfeba28
commit 61ed0b0381
2 changed files with 5 additions and 5 deletions

View File

@@ -38,9 +38,9 @@ func isDashboardStarredByUser(c *middleware.Context, dashId int64) (bool, error)
func dashboardGuardianResponse(err error) Response {
if err != nil {
return ApiError(500, "Error while checking dashboard permissions", err)
} else {
return ApiError(403, "Access denied to this dashboard", nil)
}
return ApiError(403, "Access denied to this dashboard", nil)
}
func GetDashboard(c *middleware.Context) Response {