プロジェクト

全般

プロフィール

Vote #66846

未完了

allow plugins to add controllers and actions to existing permissions

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Plugin API_20
対象バージョン:
-
開始日:
2010/03/16
期日:
進捗率:

0%

予定工数:
category_id:
20
version_id:
0
issue_org_id:
5095
author_id:
5471
assigned_to_id:
0
comments:
16
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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]

journals

forgot brackets on example
<pre>
add_permission :view_issues, { :issues_plugin => [:index,:list,:show] }
</pre>
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
this is a pretty simple patch, and posted 2 years ago, there's any chance to get it merged?
--------------------------------------------------------------------------------
Won't [[Plugin_Tutorial#Extending-the-project-menu]] fit your need?
--------------------------------------------------------------------------------
-
--------------------------------------------------------------------------------
-
--------------------------------------------------------------------------------
-
--------------------------------------------------------------------------------
-
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
-
--------------------------------------------------------------------------------
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
<pre>
add_permission :add_issues, { :issues_plugin => [:new,:create] }
</pre>
instead of adding another permission 'add_issues_2"
--------------------------------------------------------------------------------
Please don't randomly assign tickets to people.
--------------------------------------------------------------------------------
-
--------------------------------------------------------------------------------
-
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
why this patch still wasn't merged?
--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリPlugin API_20 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0