Merge lp:~camptocamp/openerp-connector/7.0-fix-create-job-by-user-1276182 into lp:~openerp-connector-core-editors/openerp-connector/7.0

Proposed by Guewen Baconnier @ Camptocamp
Status: Merged
Merged at revision: 616
Proposed branch: lp:~camptocamp/openerp-connector/7.0-fix-create-job-by-user-1276182
Merge into: lp:~openerp-connector-core-editors/openerp-connector/7.0
Diff against target: 11 lines (+1/-1)
1 file modified
connector/queue/job.py (+1/-1)
To merge this branch: bzr merge lp:~camptocamp/openerp-connector/7.0-fix-create-job-by-user-1276182
Reviewer Review Type Date Requested Status
Leonardo Pistone (community) code review Approve
OpenERP Connector Core Editors Pending
Review via email: mp+204698@code.launchpad.net

Description of the change

A user can be blocked because he has no access to the model queue.job when a job has been delayed. The creation of a job is low level and should not be restrained by the accesses of the user.

To post a comment you must log in.
Revision history for this message
Leonardo Pistone (lepistone) wrote :

ok!

review: Approve (code review)
616. By Guewen Baconnier @ Camptocamp

The creation of a job is low level and should not be restrained by the accesses of the user.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'connector/queue/job.py'
2--- connector/queue/job.py 2014-01-13 15:51:41 +0000
3+++ connector/queue/job.py 2014-02-04 14:41:36 +0000
4@@ -215,7 +215,7 @@
5 job.kwargs))
6
7 self.job_model.create(self.session.cr,
8- self.session.uid,
9+ SUPERUSER_ID,
10 vals,
11 self.session.context)
12