Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
Conflicts:
	controllers/ApiController.php
  • Loading branch information
jamesmoey committed Jan 6, 2012
2 parents 09033d9 + afc7a66 commit d869db5
Show file tree
Hide file tree
Showing 4 changed files with 283 additions and 287 deletions.
3 changes: 3 additions & 0 deletions RestapiModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ public function getCheckAttributeAccessControl($model) {
}

protected function init() {
Yii::import($this->getId().".components.*");
Yii::import($this->getId().".models.*");

if (empty($this->modelMap)) {
Yii::log("Model Map is not set. No Model will rest.", CLogger::LEVEL_ERROR, "restapi");
}
Expand Down
2 changes: 0 additions & 2 deletions components/RestApiAccessControl.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php
Yii::import("restapi.components.RestApiUserIdentity");

class RestApiAccessControl extends CFilter {

protected function preFilter($filterChain) {
Expand Down
5 changes: 1 addition & 4 deletions components/RestApiUserIdentity.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<?php

Yii::import("restapi.models.ApiUsers");

class RestApiUserIdentity extends CBaseUserIdentity {

protected $token;
Expand Down Expand Up @@ -63,4 +60,4 @@ public function getName() {
if ($this->user) return $this->user->username;
else return '';
}
}
}
Loading

0 comments on commit d869db5

Please sign in to comment.