Skip to content
Snippets Groups Projects
Commit 1ca2a873 authored by Jure's avatar Jure
Browse files

Merge branch 'fix-assign-editors-team' into 'master'

fix authors assigning

Closes xpub/xpub#178

See merge request pubsweet/pubsweet!245
parents 9446dd3a 50baa94c
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ export default compose(
team =>
team.object.type === 'collection' &&
team.object.id === project.id &&
team.teamType.name === teamTypeName,
team.teamType === teamTypeName,
),
}),
{
......
......@@ -15,10 +15,7 @@ export const addUserToTeam = ({
return dispatch(
actions.createTeam({
teamType: {
name: teamTypeName,
permissions: 'editor', // TODO
},
teamType: teamTypeName,
group,
name,
object: {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment