Patch #8109

Support for global permissions in acts_as_attachable

Added by Andriy Lesyuk over 10 years ago.

Status:NewStart date:2011-04-08
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

If an attachment is to be shown (e.g. an image) outside a project, view_permission option does not work:

acts_as_attachable :view_permission => :view_attachments

This happens because acts_as_attachable supports only project permissions. The attached patch adds support for global permissions as well...

acts_as_attachable.rb.patch Magnifier - Patch for acts_as_attachable.rb (1.03 KB) Andriy Lesyuk, 2011-04-08 23:09

Also available in: Atom PDF