mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +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',
|
'/auth/me',
|
||||||
'/channel',
|
'/channel',
|
||||||
'/i18n',
|
'/i18n',
|
||||||
|
// Allow to update own profile
|
||||||
|
`/user/edit/${user.id}`,
|
||||||
// Allow access to own avatar
|
// Allow access to own avatar
|
||||||
`/user/${user.id}/profile_pic`,
|
`/user/${user.id}/profile_pic`,
|
||||||
].includes(_parsedUrl.pathname)
|
].includes(_parsedUrl.pathname)
|
||||||
|
Loading…
Reference in New Issue
Block a user