Skip to content

Commit 640e8c0

Browse files
committed
updated comments
1 parent 5b0e465 commit 640e8c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/auth/user/UserRestHandler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ func (handler UserRestHandlerImpl) checkRBACForUserCreate(token string, requestS
11481148
isAuthorised = handler.userCommonService.CheckRbacForClusterEntity(filter.Cluster, filter.Namespace, filter.Group, filter.Kind, filter.Resource, token, handler.CheckManagerAuth)
11491149
case filter.Entity == bean.CHART_GROUP_ENTITY && len(roleFilters) == 1: //if only chartGroup entity is present in request then access will be judged through super-admin access
11501150
isAuthorised = isActionUserSuperAdmin
1151-
case filter.Entity == bean.CHART_GROUP_ENTITY && len(roleFilters) > 1: //if only chartGroup entity is present in request then access wil
1151+
case filter.Entity == bean.CHART_GROUP_ENTITY && len(roleFilters) > 1: //if entities apart from chartGroup entity are present, not checking chartGroup access
11521152
isAuthorised = true
11531153
default:
11541154
isAuthorised = false
@@ -1177,7 +1177,7 @@ func (handler UserRestHandlerImpl) checkRBACForUserCreate(token string, requestS
11771177
isAuthorised = handler.userCommonService.CheckRbacForClusterEntity(groupRole.Cluster, groupRole.Namespace, groupRole.Group, groupRole.Kind, groupRole.Resource, token, handler.CheckManagerAuth)
11781178
case groupRole.Entity == bean.CHART_GROUP_ENTITY && len(groupRoles) == 1: //if only chartGroup entity is present in request then access will be judged through super-admin access
11791179
isAuthorised = isActionUserSuperAdmin
1180-
case groupRole.Entity == bean.CHART_GROUP_ENTITY && len(groupRoles) > 1: //if only chartGroup entity is present in request then access wil
1180+
case groupRole.Entity == bean.CHART_GROUP_ENTITY && len(groupRoles) > 1: //if entities apart from chartGroup entity are present, not checking chartGroup access
11811181
isAuthorised = true
11821182
default:
11831183
isAuthorised = false

0 commit comments

Comments
 (0)