Skip to content

Commit

Permalink
Merge c68c106 into 17dc63f
Browse files Browse the repository at this point in the history
  • Loading branch information
bancer committed Jun 22, 2020
2 parents 17dc63f + c68c106 commit 72b4171
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/.settings/
/vendor/
/composer.lock
/nbproject/
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ install:
before_script:
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi"
- sh -c "if [ '$PHPCS' = '1' ]; then composer require cakephp/cakephp-codesniffer:dev-master; fi"
- sh -c "if [ '$PHPCS' = '1' ]; then composer require cakephp/cakephp-codesniffer:3.x; fi"
- sh -c "if [ '$COVERALLS' = '1' ]; then composer require --dev php-coveralls/php-coveralls; fi"
- sh -c "if [ '$COVERALLS' = '1' ]; then mkdir -p build/logs; fi"

Expand Down
3 changes: 3 additions & 0 deletions src/Model/Behavior/WhoDidItBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ public function beforeFind($event, $query, $options, $primary)
public function beforeSave($event, $entity, $options)
{
$auth = Configure::read('GlobalAuth');
if (empty($auth)) {
return;
}
$id = $auth['id'];

if ($entity->isNew()) {
Expand Down

0 comments on commit 72b4171

Please sign in to comment.