Project

General

Profile

Actions

Feature #39948

closed

Add Redmine::Plugin proxy method for Redmine::Acts::Attachable::ObjectTypeConstraint.register_object_type

Added by Mischa The Evil 5 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
Plugin API
Target version:
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

Follows Redmine - Defect #39862: Attachments functionality for (custom) plugins broken since fix for CVE-2022-44030ClosedMarius BĂLTEANU

Actions
Actions

Also available in: Atom PDF