Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var New = func(dashId int64, orgId int64, user *m.SignedInUser) DashboardGuardian { return &dashboardGuardianImpl{ user: user, dashId: dashId, orgId: orgId, log: log.New("guardians.dashboard"), } }
New factory for creating a new dashboard guardian instance
Functions ¶
This section is empty.
Types ¶
type DashboardGuardian ¶
type DashboardGuardian interface { CanSave() (bool, error) CanEdit() (bool, error) CanView() (bool, error) CanAdmin() (bool, error) HasPermission(permission m.PermissionType) (bool, error) CheckPermissionBeforeUpdate(permission m.PermissionType, updatePermissions []*m.DashboardAcl) (bool, error) GetAcl() ([]*m.DashboardAclInfoDTO, error) }
DashboardGuardian to be used for guard against operations without access on dashboard and acl
Click to show internal directories.
Click to hide internal directories.