mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 02:48:51 +00:00
Fix tests and fix bug in sudo mode
This commit is contained in:
@@ -1637,7 +1637,7 @@ def sys_sudo_mode(request):
|
||||
|
||||
# here we can't use @sys_staff_required
|
||||
if not request.user.is_staff:
|
||||
return Http404
|
||||
raise Http404
|
||||
|
||||
password_error = False
|
||||
if request.method == 'POST':
|
||||
|
Reference in New Issue
Block a user