Actions
Defect #12729
closedClosed projects are missing plugin tabs
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?
Updated by Jean-Philippe Lang almost 12 years ago
- Status changed from New to Closed
- Resolution set to Invalid
In the plugins.
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?
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