dashboard acl work

This commit is contained in:
Torkel Ödegaard
2017-06-20 17:18:20 -04:00
parent 408c37170f
commit 43ffe826fa
6 changed files with 90 additions and 84 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ func (g *DashboardGuardian) CanSave() (bool, error) {
}
func (g *DashboardGuardian) CanEdit() (bool, error) {
return g.HasPermission(m.PERMISSION_READ_ONLY_EDIT, m.ROLE_READ_ONLY_EDITOR)
return g.HasPermission(m.PERMISSION_EDIT, m.ROLE_READ_ONLY_EDITOR)
}
func (g *DashboardGuardian) CanView() (bool, error) {