delete grant only needs to be checked once
authorPhilipp Schüle <p.schuele@metaways.de>
Tue, 17 Jul 2012 14:10:23 +0000 (16:10 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Wed, 18 Jul 2012 09:45:51 +0000 (11:45 +0200)
@2012-03

Change-Id: I67d95bf2233463a1b75085d093928e5e76da1b3b
Reviewed-on: https://gerrit.tine20.org/tine20/819
Tested-by: jenkins user
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>

tine20/Tinebase/Controller/Record/Abstract.php

index d6a440b..085ec6a 100644 (file)
@@ -1052,7 +1052,6 @@ abstract class Tinebase_Controller_Record_Abstract
             $this->_checkRight('delete');
 
             foreach ($records as $record) {
-                $this->_checkGrant($record, 'delete');
                 $this->_deleteRecord($record);
             }
 
@@ -1106,7 +1105,8 @@ abstract class Tinebase_Controller_Record_Abstract
      * @param array $_ids
      * @return array of ids to actually delete
      */
-    protected function _inspectDelete(array $_ids) {
+    protected function _inspectDelete(array $_ids)
+    {
         return $_ids;
     }