diff --git a/init.rb b/init.rb index eb06414..eaef23e 100644 --- a/init.rb +++ b/init.rb @@ -6,7 +6,6 @@ Redmine::Plugin.register :jobs do url 'http://tsvallender.co.uk' author_url 'http://tsvallender.co.uk' - permission :jobs, { jobs: [:index, :show, :new, :create, :edit, :update, :destroy] }, public: false menu :project_menu, :jobs, { controller: 'jobs', action: 'index' }, caption: 'Jobs', after: :issues, param: :project_id TimeEntry.safe_attributes 'job_id' @@ -18,4 +17,8 @@ Redmine::Plugin.register :jobs do TimeEntry.send(:include, TimeEntryPatch) Project.send(:include, ProjectPatch) end + + project_module :jobs do + permission :jobs, { jobs: [:index, :show, :new, :create, :edit, :update, :destroy] }, public: false + end end