helper

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfSuperAdminFromRoles added in v1.1.0

func CheckIfSuperAdminFromRoles(roles []*repository.RoleModel) bool

func CheckIfUserDevtronManagedOnly

func CheckIfUserDevtronManagedOnly(userIds []int32) bool

func CheckIfUserIdsExists

func CheckIfUserIdsExists(userIds []int32) error

func CheckValidationForAdminAndSystemUserId

func CheckValidationForAdminAndSystemUserId(userIds []int32) error

func CreateErrorMessageForUserRoleGroups added in v0.7.0

func CreateErrorMessageForUserRoleGroups(restrictedGroups []bean2.RestrictedGroup) (string, string)

func ExtractTokenNameFromEmail added in v0.7.0

func ExtractTokenNameFromEmail(email string) string

func GetCasbinNameFromRoleGroupName added in v1.0.0

func GetCasbinNameFromRoleGroupName(name string) string

func IsSystemOrAdminUser

func IsSystemOrAdminUser(userId int32) bool

func IsSystemOrAdminUserByEmail

func IsSystemOrAdminUserByEmail(email string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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