feature: avatar uploads
This commit is contained in:
parent
ffe0678e5b
commit
01768da647
7 changed files with 139 additions and 18 deletions
|
@ -18,6 +18,7 @@ export function load() {
|
|||
const is_to_home_dir = meta.user?.id && path.toLowerCase().startsWith(`/files/users/${meta.user.id}/`);
|
||||
|
||||
const has_permission = is_to_files && (can_write_all_files || (can_write_own_files && is_to_home_dir));
|
||||
|
||||
if (!has_permission) {
|
||||
return CANNED_RESPONSES.permission_denied();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue