mirror of
https://github.com/apache/superset.git
synced 2026-04-26 19:44:58 +00:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user