permissions

package
v0.0.1-test Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControlDashboardPermissionFilter

type AccessControlDashboardPermissionFilter struct {
	User *user.SignedInUser
	// contains filtered or unexported fields
}

func NewAccessControlDashboardPermissionFilter

func NewAccessControlDashboardPermissionFilter(user *user.SignedInUser, permissionLevel models.PermissionType, queryType string) AccessControlDashboardPermissionFilter

NewAccessControlDashboardPermissionFilter creates a new AccessControlDashboardPermissionFilter that is configured with specific actions calculated based on the models.PermissionType and query type

func (AccessControlDashboardPermissionFilter) Where

func (f AccessControlDashboardPermissionFilter) Where() (string, []interface{})

type DashboardPermissionFilter

type DashboardPermissionFilter struct {
	OrgRole         org.RoleType
	Dialect         migrator.Dialect
	UserId          int64
	OrgId           int64
	PermissionLevel models.PermissionType
}

func (DashboardPermissionFilter) Where

func (d DashboardPermissionFilter) Where() (string, []interface{})

Jump to

Keyboard shortcuts

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