Skip to content

Commit

Permalink
refer new new user role fields
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek9686 committed Oct 30, 2024
1 parent 169ae8f commit 8c67724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pro/logic/user_mgmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ func GetUserRAGNodesV1(user models.User) (gws map[string]models.Node) {
if err != nil {
return
}
if user.IsAdmin || user.IsSuperAdmin {
if user.PlatformRoleID == models.AdminRole || user.PlatformRoleID == models.SuperAdminRole {
for _, node := range nodes {
if node.IsIngressGateway {
gws[node.ID.String()] = node
Expand Down

0 comments on commit 8c67724

Please sign in to comment.