Restrict work item list to admin only
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user