oceanbase / odc

OceanBase Developer Center(ODC), An open-source, enterprise-grade database tool for collaborative development
https://github.com/oceanbase/odc
Apache License 2.0
537 stars 55 forks source link

[Bug]: Roles do not take effect for the user's view-only rights #239

Closed tonghan-gsh closed 11 months ago

tonghan-gsh commented 1 year ago

ODC version

ODC 4.2.0

OB version

Any version of OceanBase

What happened?

The role of the user has the view-only permission can not view the user. Users can only be seen if they have administrative rights image image

What did you expect to happen?

If you have the view-only permission of a user, you can view the user.

How can we reproduce it (as minimally and precisely as possible)?

1.Create a role that has view-only rights for users 2.Log in with a user who has this role 3.View user

Anything else we need to know?

No response

Cloud

No response

smallsheeeep commented 11 months ago

Front-end request parameters are not as expected:

image
HSunboy commented 11 months ago

Fixed In Commit d159ed302f3b0dc56ea571c7166e65cf8a72ae94

        咏和
        Sun Dec 10 10:59:51 2023 +0800
sl01388797 commented 11 months ago

Image

PASS