1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

merged master

This commit is contained in:
Daniel Klabbers
2018-05-14 09:23:06 +02:00
55 changed files with 262 additions and 190 deletions

View File

@@ -28,10 +28,10 @@ trait RetrievesAuthorizedUsers
public function getNormalUser()
{
User::unguard();
return User::firstOrCreate([
'username' => $this->userAttributes['username']
], $this->userAttributes);
User::unguarded(function () {
return User::firstOrCreate([
'username' => $this->userAttributes['username']
], $this->userAttributes);
});
}
}

View File