Project

General

Profile

Actions

Patch #24623

open

Implements CRUD permissions and restrictions to issue attachments

Added by Frederico Camara almost 8 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Attachments
Start date:
Due date:
% Done:

0%

Estimated time:

Description

If anyone could help implement the test cases, I think this would be a great feature to Redmine.

Test applying the patch from Redmine directory:

patch --dry-run -p1 < atta.version

Then apply:

patch -p1 < atta.version

Patches added to redmine 3.1/3.2, 3.3 and current master.

Patch details:

Permissions:
  • lib/redmine.rb
Permission to view/delete:
  • app/models/issue.rb
  • app/models/journal.rb
  • app/views/issues/show.api.rsb
  • app/views/issues/show.html.erb
  • lib/redmine/export/pdf/issues_pdf_helper.rb
  • lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb
Permission to edit (add):
  • app/views/issues/new.html.erb
  • app/views/issues/_edit.html.erb
Permission to copy (view from, edit to):
  • app/controllers/issues_controller.rb
  • app/models/issue.rb
Mailer restrictions:
  • app/models/mailer.rb
  • app/views/mailer/_issue.html.erb
  • app/views/mailer/_issue.text.erb
Translation:
  • config/locales/en.yml
  • config/locales/pt-BR.yml
Migration:
  • db/migrate/20161215142110_add_attachments_permissions.rb

Files

atta.3.2 (14.5 KB) atta.3.2 Redmine 3.2-stable (works with 3.1) Frederico Camara, 2016-12-15 19:28
atta.3.3 (14.7 KB) atta.3.3 Redmine 3.3-stable Frederico Camara, 2016-12-15 19:28
atta.master (14.8 KB) atta.master Redmine (master) Frederico Camara, 2016-12-15 19:28
img-2017-03-28-12-12-22.png (31.5 KB) img-2017-03-28-12-12-22.png Ilya Ternovoy, 2017-03-28 11:16
img-2017-03-28-12-15-45.png (59.3 KB) img-2017-03-28-12-15-45.png Ilya Ternovoy, 2017-03-28 11:16
img-2017-03-28-15-42-51.png (60.5 KB) img-2017-03-28-15-42-51.png Ilya Ternovoy, 2017-03-28 14:48
Captura de tela de 2017-04-25 11-45-32.png (49.6 KB) Captura de tela de 2017-04-25 11-45-32.png Issue Permissions Frederico Camara, 2017-04-25 17:00
Screenshot from 2018-05-24 11-46-47.png (131 KB) Screenshot from 2018-05-24 11-46-47.png atta.3.3 Nothing Ctrl, 2018-05-24 06:47
Screenshot from 2018-05-24 11-46-55.png (131 KB) Screenshot from 2018-05-24 11-46-55.png atta.master Nothing Ctrl, 2018-05-24 06:47
atta.3.4 (14.5 KB) atta.3.4 Redmine 3.4-stable Frederico Camara, 2018-05-28 13:53
atta.4.0.patch (13.9 KB) atta.4.0.patch patch for 4.0-stable Piko Tao, 2019-06-27 06:42
0015-Implements-permissions-and-restrictions-to-issue-att.patch (27.5 KB) 0015-Implements-permissions-and-restrictions-to-issue-att.patch for Redmine 4.0 (see notes) Frederico Camara, 2019-11-21 13:58
0015-Implements-permissions-and-restrictions-to-issue-att.patch (21.4 KB) 0015-Implements-permissions-and-restrictions-to-issue-att.patch for Redmine 4.1 Frederico Camara, 2020-02-26 19:56
0015-Implements-permissions-and-restrictions-to-issue-att-fix-4.0.patch (28.2 KB) 0015-Implements-permissions-and-restrictions-to-issue-att-fix-4.0.patch For Redmine 4.0 Frederico Camara, 2020-05-28 23:26
0015-Implements-permissions-and-restrictions-to-issue-att-fix-4.1.patch (22 KB) 0015-Implements-permissions-and-restrictions-to-issue-att-fix-4.1.patch For Redmine 4.1 Frederico Camara, 2020-05-28 23:26
0015-Implements-permissions-and-restrictions-to-issue-att-fix2-4.0.patch (28.6 KB) 0015-Implements-permissions-and-restrictions-to-issue-att-fix2-4.0.patch For Redmine 4.0 Frederico Camara, 2020-05-29 04:19
0015-Implements-permissions-and-restrictions-to-issue-att-fix2-4.1.patch (22.6 KB) 0015-Implements-permissions-and-restrictions-to-issue-att-fix2-4.1.patch For Redmine 4.1 Frederico Camara, 2020-05-29 04:19
0015-Implements-permissions-and-restrictions-to-issue-att-fix3-4.0.patch (28.7 KB) 0015-Implements-permissions-and-restrictions-to-issue-att-fix3-4.0.patch For Redmine 4.0 Frederico Camara, 2020-05-29 13:58

Related issues

Is duplicate of Redmine - Feature #4362: Permissions on attachmentsNew2009-12-08

Actions
Is duplicate of Redmine - Feature #9358: Issue attachment permissionsNew2011-09-30

Actions
Is duplicate of Redmine - Feature #21562: Add a permission to prevent user delete issues attachments.New

Actions
Actions

Also available in: Atom PDF