Versions in this module Expand all Collapse all v0 v0.0.3 Feb 9, 2024 v0.0.1 Dec 19, 2023 Changes in this version + var ResourcesEffectedByUserDelete_BATCH_SIZE = 1000 + func IsAdmin(jwt auth.Token) bool + type AspectNodeQuery struct + Ids []string + type Com struct + func New(config config.Config) *Com + func (this *Com) GetAspectNodes(ids []string, token auth.Token) ([]model.AspectNode, error) + func (this *Com) ResourcesEffectedByUserDelete(token auth.Token, resource string) (deleteResourceIds []string, deleteUserFromResourceIds []string, err error) + type IdWrapper struct + Id string + type PermSearchElement struct + Creator string + Id string + Name string + PermissionHolders PermissionHolders + Shared bool + type PermissionHolders struct + AdminUsers []string + ExecuteUsers []string + ReadUsers []string + WriteUsers []string + type Security struct + func NewSecurity(config config.Config) (*Security, error) + func (this *Security) CheckBool(jwt auth.Token, kind string, id string, action model.AuthAction) (allowed bool, err error) + func (this *Security) CheckMultiple(jwt auth.Token, kind string, ids []string, action model.AuthAction) (result map[string]bool, err error) + func (this *Security) GetAsUser(jwt auth.Token, url string, result *[]interface{}) (err error)