Compare commits

..

No commits in common. "dev" and "main" have entirely different histories.
dev ... main

2 changed files with 1 additions and 6 deletions

5
app.py
View File

@ -120,11 +120,6 @@ def admin():
user = User.query.get(user_id)
if user and user != current_user: # Prevent self-modification
if action in ['demote', 'delete'] and user.admin:
admin_count = User.query.filter_by(admin=True).count()
if admin_count == 1:
abort(400, description="Cannot remove last admin")
if action == "promote":
user.admin = True
elif action == "demote":

View File

@ -21,7 +21,7 @@
</li>
<li class="list-group-item d-flex justify-content-between">
<span>Account Created:</span>
<span class="text-muted">Before the dinosaurs, there was your account</span>
<span class="text-muted">Just now</span>
</li>
</ul>
</div>