guardian

package
v5.0.0-beta2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL