https://www.redmine.org/
https://www.redmine.org/favicon.ico?1679302129
2011-07-04T09:10:46Z
Redmine
Redmine - Feature #7554: Private documents
https://www.redmine.org/issues/7554?journal_id=30501
2011-07-04T09:10:46Z
Jean-Jacques Mérillon
<ul></ul><p>+1<br />I am also very interested by Private documents</p>
Redmine - Feature #7554: Private documents
https://www.redmine.org/issues/7554?journal_id=33386
2011-10-28T21:47:36Z
Preethi Sriram
<ul></ul><p>I am working on this feature. I should have it tested and ready for a patch in two weeks.</p>
Redmine - Feature #7554: Private documents
https://www.redmine.org/issues/7554?journal_id=33463
2011-11-02T17:58:44Z
Preethi Sriram
<ul><li><strong>File</strong> <a href="/attachments/6727">TestPrivateDocumentsResults.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6727/TestPrivateDocumentsResults.txt">TestPrivateDocumentsResults.txt</a> added</li><li><strong>File</strong> <a href="/attachments/6728">20111017193453_add_is_private_to_documents.rb</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6728/20111017193453_add_is_private_to_documents.rb">20111017193453_add_is_private_to_documents.rb</a> added</li><li><strong>File</strong> <a href="/attachments/6729">20111018230249_add_assigned_to_id_to_documents.rb</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6729/20111018230249_add_assigned_to_id_to_documents.rb">20111018230249_add_assigned_to_id_to_documents.rb</a> added</li><li><strong>File</strong> <a href="/attachments/6730">20111018230420_add_author_id_to_documents.rb</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6730/20111018230420_add_author_id_to_documents.rb">20111018230420_add_author_id_to_documents.rb</a> added</li><li><strong>File</strong> <a href="/attachments/6731">20111028205848_add_documents_visibility_to_roles.rb</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6731/20111028205848_add_documents_visibility_to_roles.rb">20111028205848_add_documents_visibility_to_roles.rb</a> added</li><li><strong>File</strong> <a href="/attachments/6732">fix-private-documents.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6732/fix-private-documents.diff">fix-private-documents.diff</a> added</li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>I have attached the db/migrate scripts to add columns is_private, assigned_user_id,author_id to Documents table and documents_visibility to roles. The diff file is the patch file for all the views/controllers/model/yml codebase. I ran the existing tests for unit and functional test scripts on Roles and Documents and have attached the test results (no failures). Translations for yml files are in English as I am not familiar with other locales.<br />It should behave very similar to issues_visibility roles and permissions.</p>
Redmine - Feature #7554: Private documents
https://www.redmine.org/issues/7554?journal_id=33464
2011-11-02T22:00:30Z
Terence Mill
<ul></ul><p>Can u explain what use cases this will satisfy?</p>
Redmine - Feature #7554: Private documents
https://www.redmine.org/issues/7554?journal_id=33484
2011-11-03T21:21:38Z
Preethi Sriram
<ul></ul><p>These are the use cases I tested in development.<br />Created Test Project-<br />Created two accounts-<br />1)One as redmine-admin, added role as manager for the project and updated documents_visibility permission for manager to "all" on Roles Permissions.<br />2)The second account preethi, added role as a developer and updated documents_visibility permission for developer to "default" on Roles Permissions.<br />3)Logged in as redmine-admin/manager for the project-and created some private documents- so developer/preethi should not be able to view it when logged in. (Assigned userid and author as redmine-admin)<br />4)Logged in as Developer-Preethi and checked to make sure none of manager's private documents are visible. Because default permission is set to view any documents that are marked "not private" or ones assigned to the user or ones authored by the user. No private documents of Manager shows on the list<br />5)Created private documents for Developer-Preethi and assigned_id as Developer-Preethi.<br />6)Logged in as redmine-admine/manager and because the permission is set to all (in my environment), all documents (private to developer/preethi are visible). Permissions behavior for "all" is coded similar to issues-visibility role-permissions.<br />7)Third Account-has permission "Own" for the project and is able to view documents assigned to or authored by them.</p>
Redmine - Feature #7554: Private documents
https://www.redmine.org/issues/7554?journal_id=33498
2011-11-04T16:22:05Z
Preethi Sriram
<ul></ul><p>Hi Terence,<br />I forgot to add two more use cases in my last update.<br />8)Created a tester user with two roles (developer,tester) for a project. Tester has more restrictive permission ("own"). Created documents as Tester and the only documents the tester gets to see are the ones assigned or authored to them. I am assuming here that "the more restrictive permission should apply", although this person is also a developer and can get "default" permission to view non private documents of others. If this is a wrong assumption let me know and I can resend the patch by adding an orderby clause in the query.<br />9)When no document_visibility permission is assigned to a user/role in a project, default permissions apply.</p>