Spaces:
Sleeping
Sleeping
Jon Solow
commited on
Commit
·
1142e4a
1
Parent(s):
6daaec6
Actually fix missing admin
Browse files- src/login_component.py +1 -0
src/login_component.py
CHANGED
@@ -43,6 +43,7 @@ def get_authorization_button():
|
|
43 |
yahoo_con = YahooFantasyClient(oauth2, st.session_state.token)
|
44 |
st.session_state.logged_in_guid = yahoo_con.get_guid_for_logged_in_user()
|
45 |
st.session_state.yahoo_client = yahoo_con
|
|
|
46 |
st.rerun()
|
47 |
else:
|
48 |
# # If token exists in session state, allow logout
|
|
|
43 |
yahoo_con = YahooFantasyClient(oauth2, st.session_state.token)
|
44 |
st.session_state.logged_in_guid = yahoo_con.get_guid_for_logged_in_user()
|
45 |
st.session_state.yahoo_client = yahoo_con
|
46 |
+
st.session_state.user_admin = st.session_state.logged_in_guid == ADMIN_GUID
|
47 |
st.rerun()
|
48 |
else:
|
49 |
# # If token exists in session state, allow logout
|