ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Issue Query Vote Patch - only allow to show columns vor roles with special right enabled

Added by Terence Miller at 2011-10-14 10:00 am

I need help on http://pastebin.com/iNLHd56P at the moment all roles get the new columns in the issue list. i want only that role with right "permission :view_votes, {:issue_voting => :view_votes}, :require => :loggedin" are alllowed to show those columns.

T for Help!


Replies (3)

RE: Issue Query Vote Patch - only allow to show columns vor roles with special right enabled - Added by Felix Schäfer at 2011-10-14 11:47 am

The link is dead, but in any case: there is no easy solution to limit visibility on columns/filters in the issue list, the only way I can think of currently is to wrap the Query methods that provide the list of filters and do the actual querying.

RE: Issue Query Vote Patch - only allow to show columns vor roles with special right enabled - Added by Terence Miller at 2011-10-14 01:51 pm

Sorry, here a new Snippet link: http://pastebin.com/3UQrV6tr
Have you a code example how its done you'are talking about?

RE: Issue Query Vote Patch - only allow to show columns vor roles with special right enabled - Added by Felix Schäfer at 2011-10-15 10:02 am

Terence Miller wrote:

Have you a code example how its done you'are talking about?

No, my musings above result from rough knowledge of the code at that place, I haven't actually implemented new columns from a plugin, sorry.

(1-3/3)