Documentation
¶
Index ¶
- func CheckIfSuperAdminFromRoles(roles []*repository.RoleModel) bool
- func CheckIfUserDevtronManagedOnly(userIds []int32) bool
- func CheckIfUserIdsExists(userIds []int32) error
- func CheckValidationForAdminAndSystemUserId(userIds []int32) error
- func CreateErrorMessageForUserRoleGroups(restrictedGroups []bean.RestrictedGroup) (string, string)
- func ExtractTokenNameFromEmail(email string) (string, error)
- func GetCasbinNameFromRoleGroupName(name string) string
- func IsSystemOrAdminUser(userId int32) bool
- func IsSystemOrAdminUserByEmail(email string) bool
- func ValidateRoleFilters(rolefilters []bean.RoleFilter) error
- func ValidateUserRoleGroupRequest(userRoleGroups []bean.UserRoleGroup) error
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 CheckIfUserIdsExists ¶
func CreateErrorMessageForUserRoleGroups ¶ added in v0.7.0
func CreateErrorMessageForUserRoleGroups(restrictedGroups []bean.RestrictedGroup) (string, string)
func ExtractTokenNameFromEmail ¶ added in v0.7.0
func GetCasbinNameFromRoleGroupName ¶ added in v1.0.0
func IsSystemOrAdminUser ¶
func ValidateRoleFilters ¶ added in v1.4.0
func ValidateRoleFilters(rolefilters []bean.RoleFilter) error
func ValidateUserRoleGroupRequest ¶ added in v1.4.0
func ValidateUserRoleGroupRequest(userRoleGroups []bean.UserRoleGroup) error
ValidateUserRoleGroupRequest returns nil for oss implementation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.