Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- App::uses('BaseAuthorize', 'Controller/Component/Auth');
- class OauthAuthorize extends BaseAuthorize {
- public function authorize($user, CakeRequest $request) {
- $Acl = $this->_Collection->load('Acl');
- $Oauth = $this->_Collection->load('Oauth');
- $user = array($this->settings['userModel'] => $Oauth->user());
- return $Acl->check($user, $this->action($request));
- }
- }
- ?>
Add Comment
Please, Sign In to add comment