Skip to content

Commit 78c0f77

Browse files
committed
session: use isAdmin
1 parent 620cdb6 commit 78c0f77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/session.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default class SessionService extends Service {
4545
}
4646

4747
get isSudoEnabled() {
48-
return this.currentUser?.is_admin === true && this.sudoTask.isRunning;
48+
return this.isAdmin && this.sudoTask.isRunning;
4949
}
5050

5151
/**

0 commit comments

Comments
 (0)