fix: allow users to update own profile and access own avatar

This commit is contained in:
Mohamed Marrouchi 2025-01-06 18:52:55 +01:00
parent 586337496f
commit 57fcd9b3a3

View File

@ -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)