mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 12:02:41 +00:00
Merge remote-tracking branch 'origin/2.0' into 2.0-class-loading
Conflicts: cake/libs/view/helpers/js.php cake/tests/lib/templates/missing_conenction.php cake/tests/lib/templates/missing_connection.php lib/Cake/Model/ConnectionManager.php lib/Cake/TestSuite/templates/missing_conenction.php lib/Cake/View/Helper/FormHelper.php lib/Cake/tests/Case/Core/ConfigureTest.php
This commit is contained in:
commit
000e05b468
40 changed files with 342 additions and 110 deletions
|
@ -331,7 +331,7 @@ class AuthComponent extends Component {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (empty($this->authorize) || $this->isAuthorized()) {
|
||||
if (empty($this->authorize) || $this->isAuthorized($this->user())) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -707,4 +707,4 @@ class AuthComponent extends Component {
|
|||
public function flash($message) {
|
||||
$this->Session->setFlash($message, $this->flash['element'], $this->flash['params'], $this->flash['key']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue