Project

General

Profile

adding project module

Added by Osama A. over 14 years ago

Hello,
I am working on one project that uses Redmine as base, I have created a new controller and model for sticky notes feature.
to enable users to access this feature - set permission I did the following:

  • added permissions to lib/redmine.rb
map.project_module :sticky_notes do |map|
  map.permission :manage_sticky_notes, {:sticky_notes => [update, view]}
end

it's now showing at project settings page (Modules) and I can select it for one project. however, when a Manager Role user try to access the feature, they get access denied page.

anything missing?

Thanks


Replies (3)

RE: adding project module - Added by Osama A. over 14 years ago

no 1 reply!! please friends, I need the steps.

RE: adding project module - Added by Felix Schäfer over 14 years ago

Osama A. wrote:

no 1 reply!! please friends, I need the steps.

I don't know what exactly you are trying to do there, but have you considered using the officially sanctioned way to extend Redmine through plugins? Have a look at the Plugin Tutorial, you should find everything you need there, and quite frankly, I can't think of a situation where that wouldn't be the preferred way. If you really want to mess with the core, fine, but as long as it looks it could be done with a plugin, I'd wager you will be on your own.

Good day.

RE: adding project module - Added by Osama A. over 14 years ago

Felix Schäfer wrote:

Osama A. wrote:

no 1 reply!! please friends, I need the steps.

I don't know what exactly you are trying to do there, but have you considered using the officially sanctioned way to extend Redmine through plugins? Have a look at the Plugin Tutorial, you should find everything you need there, and quite frankly, I can't think of a situation where that wouldn't be the preferred way. If you really want to mess with the core, fine, but as long as it looks it could be done with a plugin, I'd wager you will be on your own.

Good day.

Good Morning Felix,
all I need is a starting point ... and it seems that is it :-) Thank you.
may I suggest one thing? an overview of the arch. of redmine and how it's component is organized and talks togather would be helpful. please let me know if it's somewhere at the docs.

Thanks a million - again.

    (1-3/3)