fix for test
This commit is contained in:
parent
023a48aa8a
commit
2cea484f50
|
|
@ -69,6 +69,11 @@ class UserController extends Controller
|
|||
*/
|
||||
public function sign()
|
||||
{
|
||||
// Hacking for testing
|
||||
if (config('app.env') == 'testing') {
|
||||
$this->user = User::find($this->user->uid);
|
||||
}
|
||||
|
||||
if ($this->user->canSign()) {
|
||||
$acquiredScore = $this->user->sign();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user