Feature #5095
allow plugins to add controllers and actions to existing permissions
| Status: | New | Start date: | 2010-03-16 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% | |
| Category: | Plugin API | |||
| Target version: | - | |||
| 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]
History
#1 Updated by Lluís Gili about 3 years ago
forgot brackets on example
add_permission :view_issues, { :issues_plugin => [:index,:list,:show] }
#2 Updated by Lluís Gili about 3 years ago
- Assignee deleted (
Eric Davis)
#3 Updated by Lluís Gili about 1 year ago
- File add_to_permissions_from_plugins.patch
added
this is a pretty simple patch, and posted 2 years ago, there's any chance to get it merged?
#4 Updated by Etienne Massip about 1 year ago
Won't Plugin_Tutorial fit your need?
#6 Updated by kurtenbagabr billaa about 1 year ago
-
#7 Updated by sheerinjerr aifseng about 1 year ago
-
#8 Updated by burgsgill aifseng about 1 year ago
-
#9 Updated by Etienne Massip about 1 year ago
- Assignee deleted (
Holger Just)
#11 Updated by Lluís Gili about 1 year 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"
#12 Updated by Anonymous about 1 year ago
- Assignee deleted (
Anonymous)
Please don't randomly assign tickets to people.
#14 Updated by kirkkent John about 1 year ago
-
#15 Updated by Etienne Massip about 1 year ago
- Assignee deleted (
Etienne Massip)