hot fix
This commit is contained in:
@ -75,7 +75,7 @@ abstract class Model extends Eloquent implements Ownable
|
||||
*/
|
||||
public function owner()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Auth\User', 'id', 'created_by');
|
||||
return $this->belongsTo('App\Models\Auth\User', 'created_by', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -73,6 +73,10 @@ class Header
|
||||
|
||||
if ($new_apps) {
|
||||
foreach ($new_apps as $new_app) {
|
||||
if (setting('notifications.' . user()->id . '.' . $new_app->alias)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$notifications++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user