Feature #5095
open
allow plugins to add controllers and actions to existing permissions
Added by Lluís Gili almost 15 years ago.
Updated almost 11 years ago.
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
forgot brackets on example
add_permission :view_issues, { :issues_plugin => [:index,:list,:show] }
- Assignee deleted (
Eric Davis)
this is a pretty simple patch, and posted 2 years ago, there's any chance to get it merged?
- Assignee set to Holger Just
- Assignee deleted (
Holger Just)
- Assignee set to Anonymous
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"
- Assignee deleted (
Anonymous)
Please don't randomly assign tickets to people.
- Assignee set to Etienne Massip
- Assignee deleted (
Etienne Massip)
why this patch still wasn't merged?
Also available in: Atom
PDF