Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -169,7 +169,7 @@ def compile_latex(file_path):
|
|
| 169 |
st.sidebar.title(f"Physics Archive ({current_role.title()})")
|
| 170 |
|
| 171 |
# ADMIN ONLY: Sync Button
|
| 172 |
-
if current_role == 'admin':
|
| 173 |
if st.sidebar.button("🔄 Pull from GitHub"):
|
| 174 |
with st.spinner("Downloading latest files..."):
|
| 175 |
success, msg = pull_from_github()
|
|
|
|
| 169 |
st.sidebar.title(f"Physics Archive ({current_role.title()})")
|
| 170 |
|
| 171 |
# ADMIN ONLY: Sync Button
|
| 172 |
+
if current_role == 'admin' or current_role == 'viewer':
|
| 173 |
if st.sidebar.button("🔄 Pull from GitHub"):
|
| 174 |
with st.spinner("Downloading latest files..."):
|
| 175 |
success, msg = pull_from_github()
|