corp rental moons
This commit is contained in:
@@ -10,6 +10,7 @@ use App\Models\User\UserRole;
|
||||
use App\Models\User\UserPermission;
|
||||
use App\Models\Esi\EsiScope;
|
||||
use App\Models\Esi\EsiToken;
|
||||
use App\Models\MoonRent\MoonRental;
|
||||
|
||||
class User extends Authenticatable
|
||||
{
|
||||
@@ -117,4 +118,16 @@ class User extends Authenticatable
|
||||
|
||||
return $role->role;
|
||||
}
|
||||
|
||||
public function isMoonRenter() {
|
||||
$moonRental = MoonRent::where([
|
||||
'Contact' => $this->character_id,
|
||||
])->first();
|
||||
|
||||
if($moonRental != null) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user