0012078: skip grants check in timesheet controller if disabled
authorPhilipp Schüle <p.schuele@metaways.de>
Fri, 12 Aug 2016 15:24:48 +0000 (17:24 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Mon, 15 Aug 2016 15:18:22 +0000 (17:18 +0200)
commitaeed181d863739cff07307e393472ffef16c26ae
treebd66353626a0e5dc8bef0bb901977458053ce6de
parent14cbcfb614269cf0a177d2fd92f3f77ee8efdd44
0012078: skip grants check in timesheet controller if disabled

* fixes checkGrant for timesheets
* need to use RequestContext/skipClosedCheck to make sure
 Sales functions can update timesheets

 https://forge.tine20.org/view.php?id=12078

Change-Id: I87726d3b93c8b8fbdbcd451db160cb9934bf9022
Reviewed-on: http://gerrit.tine20.com/customers/3434
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tests/tine20/Timetracker/JsonTest.php
tine20/Timetracker/Controller/Timesheet.php
tine20/Timetracker/Model/Timeaccount.php