refactoring dashboard folder security checks

This commit is contained in:
Torkel Ödegaard
2017-06-19 15:22:42 -04:00
parent f7194878fe
commit 74840178cf
4 changed files with 43 additions and 25 deletions

View File

@@ -50,7 +50,6 @@ func GetDashboard(c *middleware.Context) Response {
}
guardian := guardian.NewDashboardGuardian(dash.Id, c.OrgId, c.SignedInUser)
if canView, err := guardian.CanView(); err != nil || !canView {
return dashboardGuardianResponse(err)
}