check if alias exists
This commit is contained in:
parent
708816cb05
commit
ce4992c7fb
|
@ -194,7 +194,7 @@ def get_alias_activities(alias_id):
|
|||
|
||||
alias: Alias = Alias.get(alias_id)
|
||||
|
||||
if alias.user_id != user.id:
|
||||
if not alias or alias.user_id != user.id:
|
||||
return jsonify(error="Forbidden"), 403
|
||||
|
||||
alias_logs = get_alias_log(alias, page_id)
|
||||
|
|
Loading…
Reference in a new issue