jijeshmohan / redmine_track_control

Redmine Plugin to control issue creation with specific tracker
http://jijeshmohan.wordpress.com/2011/12/24/redmine-tracker-control-plugin-released
Other
18 stars 17 forks source link

not working tracking control for v2.2.0 #10

Closed morkovin closed 11 years ago

morkovin commented 11 years ago

Installation of the track_control https://github.com/jijeshmohan/redmine_track_control/zipball/redmine2 which you mentioned in #7 (2.1.x support) is successfull. I can see all the trackers in the roles/permissions and set the flag. I can also activer plugin for the project. The probrlem is traacker creation limitation does not work. All the users can create issues in the project for all the trackers. Flags in the roles/permissions are not taken in consideration by the plugin. ![Uploading v220_not_working.jpg . . .]()

morkovin commented 11 years ago

Please see some screens v220_not_working

morkovin commented 11 years ago

I've checked the sources and it looks strange for the totally disactivated/commented RolePatch

Is it just a workaround solution or the bugfix? It looks strange for me

Patches Redmine's Role.

module RolePatch def self.included(base) base.class_eval do unloadable

alias_method :permissions_without_unicode, :permissions unless method_defined? :permissions_without_unicode

  # def permissions
  # read_attribute(:permissions) || []
  # return [] unless self[:permissions]
  # self[:permissions].map! do |p|
  # if p.instance_of? String
  # p.split('').slice(1..-1).join.to_sym
  # else
  # p
  # end
  # end
  # end
end

end end

jijeshmohan commented 11 years ago

Hi

You can take the latest build https://github.com/jijeshmohan/redmine_track_control/archive/redmine2.zip

Regards, Jijesh

morkovin commented 11 years ago

Thanks a lot! We will test it after New Year :)