feat(user_info): include Groups in user data payload when include_perms is True and show Groups on user_info page (#39450)

This commit is contained in:
Declan Zhao
2026-04-22 14:14:59 -04:00
committed by GitHub
parent f6c5219e89
commit 4ee3a0fc07
9 changed files with 24 additions and 3 deletions

View File

@@ -50,6 +50,8 @@ class TestCurrentUserApi(SupersetTestCase):
response = json.loads(rv.data.decode("utf-8"))
roles = list(response["result"]["roles"].keys())
assert "Admin" == roles.pop()
assert "groups" in response["result"]
assert isinstance(response["result"]["groups"], list)
@patch("superset.security.manager.g")
def test_get_my_roles_anonymous(self, mock_g):