Feature #12401

Split "Manage documents" permission into create, edit and delete permissions

Added by Michael Esemplare about 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Documents
Target version:2.3.0
Resolution:Fixed

Description

Due to security reasons we needed to expand the "Manage Documents" permission to allow specific settings per role. I am pushing back my changes in patch form as a feature for Redmine.

document.rb.patch Magnifier - Patch the document model (627 Bytes) Michael Esemplare, 2012-11-19 21:43

documents.show.html.erb.patch Magnifier - Patch the show document view (613 Bytes) Michael Esemplare, 2012-11-19 21:43

en-GB.yml.patch Magnifier - Patch the language file (574 Bytes) Michael Esemplare, 2012-11-19 21:43

redmine.rb.patch Magnifier - Patch the core to add permissions (973 Bytes) Michael Esemplare, 2012-11-19 21:43

views.documents.index.html.erb.patch Magnifier - Patch the document view index (674 Bytes) Michael Esemplare, 2012-11-19 21:43


Related issues

Related to Redmine - Feature #12677: Private attachments for issues New

Associated revisions

Revision 11206
Added by Jean-Philippe Lang almost 5 years ago

Split "Manage documents" permission into create, edit and delete permissions (#12401).

Revision 11207
Added by Jean-Philippe Lang almost 5 years ago

Update locales for new document permissions (#12401).

Revision 11214
Added by Toshi MARUYAMA almost 5 years ago

German translation updated by Daniel Felix (#12401)

Revision 11383
Added by Toshi MARUYAMA almost 5 years ago

remove "permission_manage_documents" from az.yml (#13152, #12401)

History

#1 Updated by Terence Mill about 5 years ago

Sound intesting.
So which new rights did you add?

#2 Updated by Michael Esemplare about 5 years ago

Instead of "Manage Documents" which was too abstract for our purposes, I separated the permissions into "Add Documents", "Edit Documents", and "Delete Documents". I also left the "View Documents" permission in place.

#3 Updated by Terence Mill about 5 years ago

Perfect!

+1

#4 Updated by Adriano Ceccarelli about 5 years ago

It worked perfectly!

However, I'm also a need permission by document type. Very difficult?

#5 Updated by Jean-Philippe Lang almost 5 years ago

  • Subject changed from Enhanced Documents permission to Split "Manage documents" permission into create, edit and delete permissions
  • Category changed from Permissions and roles to Documents
  • Target version set to 2.3.0

#6 Updated by Abdul Halim Mat Ali almost 5 years ago

We need this for the file permission too

#7 Updated by Eugene B almost 5 years ago

At 2.2.0 version a "private" comment type was added, but if you attach any document
to this "private" comment its available to everyone. If a "private" status will be
applied to uploaded document as well. That would be super.

#8 Updated by Jan Niggemann (redmine.org team member) almost 5 years ago

Eugene B wrote:

At 2.2.0 version a "private" comment type was added, but if you attach any document
to this "private" comment its available to everyone.

Eugene, can you please open a new defect for this? Thank you!

#9 Updated by Jean-Philippe Lang almost 5 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Permissions changed in r11206.

#10 Updated by Daniel Felix almost 5 years ago

German translations:

permission_add_documents: Dokumente hinzufügen
permission_edit_documents: Dokumente bearbeiten
permission_delete_documents: Dokumente löschen

#11 Updated by Toshi MARUYAMA almost 5 years ago

Daniel Felix wrote:

German translations:

permission_add_documents: Dokumente hinzufügen
permission_edit_documents: Dokumente bearbeiten
permission_delete_documents: Dokumente löschen

Committed in trunk r11214, thanks.

Also available in: Atom PDF