Project

General

Profile

Actions

Defect #12729

closed

Closed projects are missing plugin tabs

Added by Dinu Marina almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

When a project is closed, certain plugin tabs are missing (eg. DMSF). Is this something fixable in Redmine or in the plugins?

Actions #1

Updated by Jean-Philippe Lang almost 12 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

In the plugins.

Actions #2

Updated by Dinu Marina almost 12 years ago

Could you point to the way this happens? I'm looking for a quick fix, my guess (so far) is that there's something broken in the permissions handling? How does the closed property manifest onto a plugin that is completely unaware of it?

Actions #3

Updated by Dinu Marina almost 12 years ago

I'll just update this for other people interested:
As stated in documentation for function permission in lib/redmine/plugin.rb:

:read => set it to true so that the permission is still granted on closed projects

So for permissions to be available for closed projects, you need to rewrite permission lines as follows:

    permission :view_dmsf_folders, {:dmsf => [:show], :dmsf_folders_copy => [:new, :copy_to, :move_to]}, :read => true

(Example for DMSF)
Actions

Also available in: Atom PDF