Actions
Feature #39948
closedAdd Redmine::Plugin proxy method for Redmine::Acts::Attachable::ObjectTypeConstraint.register_object_type
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Description
Following #39862 I wonder: wouldn't it be neater to add a dedicated proxy method to Redmine::Plugin
(something like Redmine::Plugin#attachment_object_type
) for Redmine::Acts::Attachable::ObjectTypeConstraint.register_object_type
?
This way plugin authors don't have to reach into Redmine core internals when implementing AAA for their own plugin models themselves. How do other people think about this?
Files
Related issues
Updated by Mischa The Evil 12 months ago
- Follows Defect #39862: Attachments functionality for (custom) plugins broken since fix for CVE-2022-44030 added
Updated by Mischa The Evil 12 months ago
Jens Krämer: what do you think about this?
Updated by Jens Krämer 11 months ago
- File 0001-introduces-Redmine-Plugin-attachment_object_type-399.patch 0001-introduces-Redmine-Plugin-attachment_object_type-399.patch added
Good point, maybe like this?
Updated by Marius BĂLTEANU 10 months ago
- Status changed from New to Resolved
- Assignee set to Marius BĂLTEANU
- Target version set to 5.0.8
- Resolution set to Fixed
Committed, thanks!
Actions