mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
Added user role to captured Sentry data
closes https://github.com/TryGhost/Team/issues/2241 - as part of the authenticated application setup, update the captured Sentry data with the user role - helps narrow things down when we see permission errors pop up due to requests being made for endpoints that the current user doesn't have permission to access
This commit is contained in:
parent
fe99a000f1
commit
0e181c84b2
@ -54,7 +54,8 @@ export default class SessionService extends ESASessionService {
|
||||
return new Promise((resolve) => {
|
||||
resolve({
|
||||
...event,
|
||||
release: `ghost@${this.config.version}`
|
||||
release: `ghost@${this.config.version}`,
|
||||
'user.role': this.session.user.role.name
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user