laichai commited on
Commit
949bbda
·
verified ·
1 Parent(s): 5ff7f38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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()