Documentation ¶
Index ¶
- type DashboardGuardian
- func (g *DashboardGuardian) CanAdmin() (bool, error)
- func (g *DashboardGuardian) CanEdit() (bool, error)
- func (g *DashboardGuardian) CanSave() (bool, error)
- func (g *DashboardGuardian) CanView() (bool, error)
- func (g *DashboardGuardian) CheckPermissionBeforeUpdate(permission m.PermissionType, updatePermissions []*m.DashboardAcl) (bool, error)
- func (g *DashboardGuardian) GetAcl() ([]*m.DashboardAclInfoDTO, error)
- func (g *DashboardGuardian) HasPermission(permission m.PermissionType) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardGuardian ¶
type DashboardGuardian struct {
// contains filtered or unexported fields
}
func NewDashboardGuardian ¶
func NewDashboardGuardian(dashId int64, orgId int64, user *m.SignedInUser) *DashboardGuardian
func (*DashboardGuardian) CanAdmin ¶
func (g *DashboardGuardian) CanAdmin() (bool, error)
func (*DashboardGuardian) CanEdit ¶
func (g *DashboardGuardian) CanEdit() (bool, error)
func (*DashboardGuardian) CanSave ¶
func (g *DashboardGuardian) CanSave() (bool, error)
func (*DashboardGuardian) CanView ¶
func (g *DashboardGuardian) CanView() (bool, error)
func (*DashboardGuardian) CheckPermissionBeforeUpdate ¶
func (g *DashboardGuardian) CheckPermissionBeforeUpdate(permission m.PermissionType, updatePermissions []*m.DashboardAcl) (bool, error)
func (*DashboardGuardian) GetAcl ¶
func (g *DashboardGuardian) GetAcl() ([]*m.DashboardAclInfoDTO, error)
GetAcl returns dashboard acl
func (*DashboardGuardian) HasPermission ¶
func (g *DashboardGuardian) HasPermission(permission m.PermissionType) (bool, error)
Click to show internal directories.
Click to hide internal directories.