Skip to content

Commit a40b187

Browse files
authored
Use ES6 getters
1 parent ba3b46e commit a40b187

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/routes/public/role-invites.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export default Route.extend({
1010
this.loader
1111
.post('/role_invites/user', payload)
1212
.then(user => {
13-
if (this.get('session.isAuthenticated')) {
14-
if (this.get('authManager.currentUser.email') === user.email) {
13+
if (this.session.isAuthenticated) {
14+
if (this.authManager.currentUser.email === user.email) {
1515
this.loader
1616
.post('/role_invites/accept-invite', payload)
1717
.then(invite => {

0 commit comments

Comments
 (0)