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 !245
parents 9446dd3a 50baa94c
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ export default compose( ...@@ -23,7 +23,7 @@ export default compose(
team => team =>
team.object.type === 'collection' && team.object.type === 'collection' &&
team.object.id === project.id && team.object.id === project.id &&
team.teamType.name === teamTypeName, team.teamType === teamTypeName,
), ),
}), }),
{ {
......
...@@ -15,10 +15,7 @@ export const addUserToTeam = ({ ...@@ -15,10 +15,7 @@ export const addUserToTeam = ({
return dispatch( return dispatch(
actions.createTeam({ actions.createTeam({
teamType: { teamType: teamTypeName,
name: teamTypeName,
permissions: 'editor', // TODO
},
group, group,
name, name,
object: { 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