mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
double negatives are hard
This commit is contained in:
parent
dfce93202e
commit
5c8a14007f
1 changed files with 2 additions and 2 deletions
|
@ -902,7 +902,7 @@ def process_inbox_request(request_json, store_ap_json):
|
||||||
# Lemmy currently only sends userbans for admins banning local users
|
# Lemmy currently only sends userbans for admins banning local users
|
||||||
# Banning remote users is hacked by banning them from every community of which they are a part
|
# Banning remote users is hacked by banning them from every community of which they are a part
|
||||||
# There's plans to change this in the future though.
|
# There's plans to change this in the future though.
|
||||||
if not blocker.is_instance_admin() and not blocked.instance_id == blocker.instance_id:
|
if not blocker.is_instance_admin() or not blocked.instance_id == blocker.instance_id:
|
||||||
log_incoming_ap(id, APLOG_USERBAN, APLOG_FAILURE, request_json if store_ap_json else None, 'Does not have permission')
|
log_incoming_ap(id, APLOG_USERBAN, APLOG_FAILURE, request_json if store_ap_json else None, 'Does not have permission')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -1004,7 +1004,7 @@ def process_inbox_request(request_json, store_ap_json):
|
||||||
return
|
return
|
||||||
unblock_from_ap_id = request_json['object']['target']
|
unblock_from_ap_id = request_json['object']['target']
|
||||||
|
|
||||||
if not unblocker.is_instance_admin() and not unblocked.instance_id == unblocker.instance_id:
|
if not unblocker.is_instance_admin() or not unblocked.instance_id == unblocker.instance_id:
|
||||||
log_incoming_ap(id, APLOG_USERBAN, APLOG_FAILURE, request_json if store_ap_json else None, 'Does not have permission')
|
log_incoming_ap(id, APLOG_USERBAN, APLOG_FAILURE, request_json if store_ap_json else None, 'Does not have permission')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue