Content
Updated by Jan Sandbrink about 9 years ago
### Reproduction
1. make sure you are allowed to **add** work packages, but not allowed to **edit** work packages
2. open the WP create form
3. add some attachments
4. save
### Expected
- I am able to save the work package
- My attachment is added to the work package
### Actual
- The work package will be saved
- The attachments can’t be uploaded because of missing permissions
### Note
This is quite an edge case: Attachment upload was only specified to be allowed when being allowed to edit work packages. Now that means, after adding the work package you are not allowed to edit it anymore (adding attachments *is* editing), however from a user perspective it is just “adding a WP and its attachments”.
There are two solutions:
1. just allow to add attachments when being able to add work packages, too
\#\* this is an easy fix
\#\* semantically it is not ideal, because it will also allow to add attachments much later to a work package (when it is *real* editing
2. allow attachment upload separately from WP creation and just “link” an uploaded attachment to a work package
\#\* this is a real design-change for attachments
\#\* it is more time consuming to implement
\#\* it also allows to do other good things, e.g. by uploading attachments before creating the WP, it is possible to already include them in previews before the WP is stored
1. make sure you are allowed to **add** work packages, but not allowed to **edit** work packages
2. open the WP create form
3. add some attachments
4. save
### Expected
- I am able to save the work package
- My attachment is added to the work package
### Actual
- The work package will be saved
- The attachments can’t be uploaded because of missing permissions
### Note
This is quite an edge case: Attachment upload was only specified to be allowed when being allowed to edit work packages. Now that means, after adding the work package you are not allowed to edit it anymore (adding attachments *is* editing), however from a user perspective it is just “adding a WP and its attachments”.
There are two solutions:
1. just allow to add attachments when being able to add work packages, too
\#\* this is an easy fix
\#\* semantically it is not ideal, because it will also allow to add attachments much later to a work package (when it is *real* editing
2. allow attachment upload separately from WP creation and just “link” an uploaded attachment to a work package
\#\* this is a real design-change for attachments
\#\* it is more time consuming to implement
\#\* it also allows to do other good things, e.g. by uploading attachments before creating the WP, it is possible to already include them in previews before the WP is stored