Skip to content

Commit

Permalink
backport of commit 45de07e
Browse files Browse the repository at this point in the history
  • Loading branch information
legege committed May 6, 2022
1 parent c0adfc5 commit 25c5916
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/app/services/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export default class TokenService extends Service {
@task(function*() {
const TokenAdapter = getOwner(this).lookup('adapter:token');
try {
return yield TokenAdapter.findSelf();
var token = yield TokenAdapter.findSelf()
this.secret = token.secret;
return token;
} catch (e) {
const errors = e.errors ? e.errors.mapBy('detail') : [];
if (errors.find(error => error === 'ACL support disabled')) {
Expand Down

0 comments on commit 25c5916

Please sign in to comment.