Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Fixed
- FlowAuth: `User.token_limits` now correctly filters by the current user when computing role-derived caps. Previously the join did not constrain by user id, so the function returned the most-permissive role on the server across *all* users. [#7274](https://github.com/Flowminder/FlowKit/issues/7274)
- FlowAuth: the "Renew" button is now also shown on expired tokens. The renewal endpoint already accepted expired tokens (only the server/role caps are checked), but the button was hidden on the Expired tokens list and on rows whose `expiry` had passed.

### Removed

Expand Down
2 changes: 1 addition & 1 deletion flowauth/frontend/src/Token.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class Token extends React.Component {
<Button variant="outlined" color="primary" onClick={this.toggleOpen}>
View
</Button>
{onRenew && !isExpired && (
{onRenew && (
<Button
variant="outlined"
color="primary"
Expand Down
1 change: 1 addition & 0 deletions flowauth/frontend/src/TokenList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ class TokenList extends React.Component {
roles={object.roles}
classes={classes}
editAction={editAction}
onRenew={this.handleRenew}
/>
))}
<Grid item xs={12} />
Expand Down
Loading