mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-03 14:52:36 +02:00
Fix permission management when editing/deleting fetches
This commit is contained in:
parent
58ec3597ab
commit
21bec865b3
@ -46,6 +46,6 @@ def get_fetch(fetch_id):
|
||||
if not fetch:
|
||||
flask.abort(404)
|
||||
if not fetch.user.domain in flask_login.current_user.get_managed_domains():
|
||||
if not fetch.user == flask_login.current_user:
|
||||
if not fetch.user.email == flask_login.current_user.email:
|
||||
flask.abort(403)
|
||||
return fetch
|
||||
|
Loading…
x
Reference in New Issue
Block a user