mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 21:04:15 +00:00
fix: allow users to update own profile and access own avatar
This commit is contained in:
parent
586337496f
commit
57fcd9b3a3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user