Guest User

Untitled

a guest
Nov 17th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <?php
  2. App::uses('BaseAuthorize', 'Controller/Component/Auth');
  3. class OauthAuthorize extends BaseAuthorize {
  4. public function authorize($user, CakeRequest $request) {
  5. $Acl = $this->_Collection->load('Acl');
  6. $Oauth = $this->_Collection->load('Oauth');
  7. $user = array($this->settings['userModel'] => $Oauth->user());
  8. return $Acl->check($user, $this->action($request));
  9. }
  10. }
  11. ?>
Add Comment
Please, Sign In to add comment