diff --git a/api/src/user/guards/ability.guard.ts b/api/src/user/guards/ability.guard.ts index 095ed904..b60a8ac2 100644 --- a/api/src/user/guards/ability.guard.ts +++ b/api/src/user/guards/ability.guard.ts @@ -60,6 +60,8 @@ export class Ability implements CanActivate { '/auth/me', '/channel', '/i18n', + // Allow to update own profile + `/user/edit/${user.id}`, // Allow access to own avatar `/user/${user.id}/profile_pic`, ].includes(_parsedUrl.pathname)