We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba3b46e commit a40b187Copy full SHA for a40b187
app/routes/public/role-invites.js
@@ -10,8 +10,8 @@ export default Route.extend({
10
this.loader
11
.post('/role_invites/user', payload)
12
.then(user => {
13
- if (this.get('session.isAuthenticated')) {
14
- if (this.get('authManager.currentUser.email') === user.email) {
+ if (this.session.isAuthenticated) {
+ if (this.authManager.currentUser.email === user.email) {
15
16
.post('/role_invites/accept-invite', payload)
17
.then(invite => {
0 commit comments