Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lily Kuang committed Feb 9, 2022
1 parent 259a260 commit 65ce787
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions superset/security/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,12 @@ def create_login_manager(self, app: Flask) -> LoginManager:
return lm

def request_loader(self, request: Request):
# pylint: disable=import-outside-toplevel
from superset.extensions import feature_flag_manager

if feature_flag_manager.is_feature_enabled("EMBEDDED_SUPERSET"):
return self.get_guest_user_from_request(request)
return None

def get_schema_perm( # pylint: disable=no-self-use
self, database: Union["Database", str], schema: Optional[str] = None
Expand Down

0 comments on commit 65ce787

Please sign in to comment.