mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
merged master
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user