Moderators can remove global blocks

main
Bob Mottram 2022-05-14 18:33:25 +01:00
parent 27ad479aa9
commit 9cc23635a1
1 changed files with 4 additions and 0 deletions

View File

@ -3717,6 +3717,10 @@ class PubServer(BaseHTTPRequestHandler):
remove_block(base_dir,
blocker_nickname, domain,
blocking_nickname, blocking_domain_full)
if is_moderator(base_dir, blocker_nickname):
remove_global_block(base_dir,
blocking_nickname,
blocking_domain_full)
if calling_domain.endswith('.onion') and onion_domain:
origin_path_str = 'http://' + onion_domain + users_path
elif (calling_domain.endswith('.i2p') and i2p_domain):