acl

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ACL

func ACL(ormService *datalayer.ORM, roleEntity *entity.RoleEntity, resource string, permissions ...string) bool

func GetRole added in v1.2.59

func GetRole(c *gin.Context, request *acl.RoleRequestDTO) (*acl.RoleResponseDTO, error)

func ListResources added in v1.2.59

func ListResources(c *gin.Context) *acl.ResourcesResponseDTO

func ListRoles added in v1.2.59

func ListRoles(c *gin.Context, request *crud.ListRequest) *acl.RolesResponseDTO

func ListUserResources added in v1.2.61

func ListUserResources(c *gin.Context, getUserFunc func(c *gin.Context) beeorm.Entity) *acl.ResourcesResponseDTO

func RolesColumns added in v1.2.59

func RolesColumns() []*crud.Column

Types

type UserRoleGetter added in v1.2.61

type UserRoleGetter interface {
	GetRole() *entity.RoleEntity
}

Jump to

Keyboard shortcuts

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