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>
Thu, 1 Sep 2016 09:13:10 +0000 (11:13 +0200)
commit63b84a5f6dc4493215ff412e170c68c3d1e39b89
tree1ca21cf961552d99a57694b585bacdcf527adaa6
parent0eb230b91ffccd33e3cdf87e639dfe288aaf43c7
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