mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 22:14:25 +01:00
Update admin notification UI and allow for deleting notifications (#803)
* Show notification titles on the notification list page * Allow for deleting notifications * Update notification UI in admin panel * Make /api/v1/notifications/<id> accessible to all * Default `login_as_user()` and `register_user()` to fail on invalid credentials
This commit is contained in:
@@ -112,7 +112,6 @@ def test_api_hint_admin_access():
|
||||
r = client.delete('/api/v1/hints/1')
|
||||
assert r.status_code == 302
|
||||
r_admin = admin.patch('/api/v1/hints/1', json={"cost": 2})
|
||||
print(r_admin.get_json)
|
||||
assert r_admin.status_code == 200
|
||||
r_admin = admin.delete('/api/v1/hints/1')
|
||||
assert r_admin.status_code == 200
|
||||
|
||||
Reference in New Issue
Block a user