Content
View differences
Updated by Niels Lindenthal over 10 years ago
h3. ### Reproduction
# 1. make sure you are allowed to *add* **add** work packages, but not allowed to *edit* **edit** work packages
# 2. open the WP create form
# 3. add some attachments
# 4. save
h3. ### Expected
*
- I am able to save the work package
*
- My attachment is added to the work package
h3. ### Actual
*
- The work package will be saved
*
- The attachments can't can’t be uploaded because of missing permissions
h3. ### 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_ *is* editing), however from a user perspective it is just "adding “adding a WP and its attachments". 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_ *real* editing
# 2. allow attachment upload separately from WP creation and just "link" “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
#
#
#
#
h3.
*
-
*
-
h3.
*
-
*
-
h3.
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_
There are two solutions:
#
#*
\#\*
#*
\#\*
#
#*
\#\*
#*
\#\*
#*
\#\*