Actions
Feature #5095
openallow plugins to add controllers and actions to existing permissions
Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
2010-03-16
Due date:
% Done:
0%
Estimated time:
Resolution:
Description
This patch allows a plugin to add his actions to existing permissions, on init.rb should be called like this
add_permission :view_issues, :issues_plugin => [:index,:list,:show]
Files
Updated by Lluís Gili almost 15 years ago
forgot brackets on example
add_permission :view_issues, { :issues_plugin => [:index,:list,:show] }
Updated by Lluís Gili almost 13 years ago
this is a pretty simple patch, and posted 2 years ago, there's any chance to get it merged?
Updated by Etienne Massip almost 13 years ago
Won't Plugin_Tutorial fit your need?
Updated by Lluís Gili over 12 years ago
this patch expands what is explained in plugin tutorial
it allows plugins to add methods to a permission. For instance if you write a plugin to add issues from another controller, with this patch you can just call
add_permission :add_issues, { :issues_plugin => [:new,:create] }
instead of adding another permission 'add_issues_2"
Updated by Anonymous over 12 years ago
- Assignee deleted (
Anonymous)
Please don't randomly assign tickets to people.
Actions