Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed issues with calling the parent method

Parent methods would return `void` or `true`, both not useful for further processing
  • Loading branch information...
commit 74429340883644fe6d564f7c0fce8b9cb019c401 1 parent e5ff448
Jose Diaz-Gonzalez authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  Model/Behavior/PermitBehavior.php
View
3  Model/Behavior/PermitBehavior.php
@@ -61,7 +61,6 @@ public function setup(Model $Model, $settings = array()) {
* @return array Modified query
*/
public function beforeFind(Model $Model, $query) {
- $query = parent::beforeFind($Model, $query);
$this->settings[$Model->alias] = $this->modelDefaults[$Model->alias];
if (isset($query['permit']) && isset($this->settings[$Model->alias]['rules'][$query['permit']])) {
@@ -93,8 +92,6 @@ public function beforeFind(Model $Model, $query) {
* @throws UnauthorizedException
*/
public function afterFind(Model $Model, $results, $primary) {
- $results = parent::afterFind($Model, $results, $primary);
-
if (!$primary) {
return $results;
}
Please sign in to comment.
Something went wrong with that request. Please try again.