File tree Expand file tree Collapse file tree 6 files changed +37
-3
lines changed Expand file tree Collapse file tree 6 files changed +37
-3
lines changed Original file line number Diff line number Diff line change 50
50
)
51
51
from superset .security import SupersetSecurityManager
52
52
from superset .typing import FlaskResponse
53
- from superset .users .api import CurrentUserRestApi
54
53
from superset .utils .core import pessimistic_connection_handling
55
54
from superset .utils .log import DBEventLogger , get_event_logger_from_cfg_value
56
55
@@ -195,6 +194,7 @@ def init_views(self) -> None:
195
194
TabStateView ,
196
195
)
197
196
from superset .views .tags import TagView
197
+ from superset .views .users .api import CurrentUserRestApi
198
198
199
199
#
200
200
# Setup API views
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ # Licensed to the Apache Software Foundation (ASF) under one
3
+ # or more contributor license agreements. See the NOTICE file
4
+ # distributed with this work for additional information
5
+ # regarding copyright ownership. The ASF licenses this file
6
+ # to you under the Apache License, Version 2.0 (the
7
+ # "License"); you may not use this file except in compliance
8
+ # with the License. You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing,
13
+ # software distributed under the License is distributed on an
14
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ # KIND, either express or implied. See the License for the
16
+ # specific language governing permissions and limitations
17
+ # under the License.
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class CurrentUserRestApi(BaseApi):
31
31
32
32
@expose ("/" , methods = ["GET" ])
33
33
@safe
34
- def me (self ) -> Response :
34
+ def get_me (self ) -> Response :
35
35
"""Get the user object corresponding to the agent making the request
36
36
---
37
37
get:
File renamed without changes.
Original file line number Diff line number Diff line change @@ -905,7 +905,7 @@ def test_views_are_secured(self):
905
905
["LocaleView" , "index" ],
906
906
["AuthDBView" , "login" ],
907
907
["AuthDBView" , "logout" ],
908
- ["CurrentUserRestApi" , "me " ],
908
+ ["CurrentUserRestApi" , "get_me " ],
909
909
["Dashboard" , "embedded" ],
910
910
["R" , "index" ],
911
911
["Superset" , "log" ],
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ # Licensed to the Apache Software Foundation (ASF) under one
3
+ # or more contributor license agreements. See the NOTICE file
4
+ # distributed with this work for additional information
5
+ # regarding copyright ownership. The ASF licenses this file
6
+ # to you under the Apache License, Version 2.0 (the
7
+ # "License"); you may not use this file except in compliance
8
+ # with the License. You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing,
13
+ # software distributed under the License is distributed on an
14
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ # KIND, either express or implied. See the License for the
16
+ # specific language governing permissions and limitations
17
+ # under the License.
You can’t perform that action at this time.
0 commit comments