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 4 months ago. Updated about 2 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 #1

Updated by Mischa The Evil 4 months ago

  • Follows Defect #39862: Attachments functionality for (custom) plugins broken since fix for CVE-2022-44030 added
Actions #2

Updated by Mischa The Evil 4 months ago

Jens Krämer: what do you think about this?

Actions #4

Updated by Marius BĂLTEANU about 2 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 #5

Updated by Marius BĂLTEANU about 2 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF