Browse files

Fixed a few index issues

  • Loading branch information...
1 parent 28b540f commit e5ff44880cd7cceed179fac515a8f1b8cabddf7a Jose Diaz-Gonzalez committed Nov 17, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 Model/Behavior/PermitBehavior.php
View
5 Model/Behavior/PermitBehavior.php
@@ -60,7 +60,8 @@ public function setup(Model $Model, $settings = array()) {
* @param array $query Array of Query parameters.
* @return array Modified query
*/
- public function beforeFind(Model $model, $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']])) {
@@ -92,7 +93,7 @@ public function beforeFind(Model $model, $query) {
* @throws UnauthorizedException
*/
public function afterFind(Model $Model, $results, $primary) {
- $results = parent::afterFind($results, $primary);
+ $results = parent::afterFind($Model, $results, $primary);
if (!$primary) {
return $results;

0 comments on commit e5ff448

Please sign in to comment.