fix: Check ACL
parent
9846206191
commit
06d257ecf6
13
CHANGELOG.md
13
CHANGELOG.md
|
@ -1,5 +1,18 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
# 0.17.1
|
||||||
|
|
||||||
|
* Prevent endorsement PMs being sent when visibility is private
|
||||||
|
* Prevent lemmy switching to mastodon proxy
|
||||||
|
* Fediseer can now change the PM proxy
|
||||||
|
|
||||||
|
# 0.17.0
|
||||||
|
|
||||||
|
* Added instance state
|
||||||
|
* Added has_captcha
|
||||||
|
* Added approval_required
|
||||||
|
* Added update.py
|
||||||
|
|
||||||
# 0.16.2
|
# 0.16.2
|
||||||
|
|
||||||
* Added way to retrieve misskey admins
|
* Added way to retrieve misskey admins
|
||||||
|
|
|
@ -173,6 +173,8 @@ class WhitelistDomain(Resource):
|
||||||
instance_to_reset = database.find_instance_by_domain(domain)
|
instance_to_reset = database.find_instance_by_domain(domain)
|
||||||
changed = False
|
changed = False
|
||||||
new_key = None
|
new_key = None
|
||||||
|
if requestor_instance != instance_to_reset and user.username != "fediseer":
|
||||||
|
raise e.Forbidden("Only an instance admin can modify the instance")
|
||||||
if self.args.sysadmins is not None and instance.sysadmins != self.args.sysadmins:
|
if self.args.sysadmins is not None and instance.sysadmins != self.args.sysadmins:
|
||||||
instance.sysadmins = self.args.sysadmins
|
instance.sysadmins = self.args.sysadmins
|
||||||
changed = True
|
changed = True
|
||||||
|
|
Loading…
Reference in New Issue