parent
d81982cd20
commit
40eb43e0c5
5
init.rb
5
init.rb
|
@ -6,7 +6,6 @@ Redmine::Plugin.register :jobs do
|
||||||
url 'http://tsvallender.co.uk'
|
url 'http://tsvallender.co.uk'
|
||||||
author_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
|
menu :project_menu, :jobs, { controller: 'jobs', action: 'index' }, caption: 'Jobs', after: :issues, param: :project_id
|
||||||
|
|
||||||
TimeEntry.safe_attributes 'job_id'
|
TimeEntry.safe_attributes 'job_id'
|
||||||
|
@ -18,4 +17,8 @@ Redmine::Plugin.register :jobs do
|
||||||
TimeEntry.send(:include, TimeEntryPatch)
|
TimeEntry.send(:include, TimeEntryPatch)
|
||||||
Project.send(:include, ProjectPatch)
|
Project.send(:include, ProjectPatch)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
project_module :jobs do
|
||||||
|
permission :jobs, { jobs: [:index, :show, :new, :create, :edit, :update, :destroy] }, public: false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue