Restrict work item list to admin only

This commit is contained in:
John Lyon-Smith
2018-04-27 19:38:58 -07:00
parent 53a4df55a2
commit f64c48fba6
4 changed files with 36 additions and 5 deletions

View File

@@ -106,6 +106,7 @@ export class Activity extends React.Component {
this.setState({
binder: new FormBinder(
{
...this.state.binder.getOriginalFieldValues(),
workItem: workItem._id,
team: api.loggedInUser.team,
},
@@ -143,7 +144,7 @@ export class Activity extends React.Component {
binder: new FormBinder(activity, Activity.bindings),
})
getWorkItem(activity.workItemId)
return getWorkItem(activity.workItem)
}
})
.catch((err) => {