DONE: add allowance payout trace for admin, improve UI on voting side, increase pagination number
This commit is contained in:
@@ -40,4 +40,14 @@ class User extends Authenticatable
|
||||
// Do not allow impersonating main admin.
|
||||
return (int) $this->id !== 1;
|
||||
}
|
||||
|
||||
public function allowanceClaimCodes()
|
||||
{
|
||||
return $this->hasMany(AllowanceClaimCode::class, 'used_by_admin_id');
|
||||
}
|
||||
|
||||
public function allowancePayouts()
|
||||
{
|
||||
return $this->hasMany(AllowancePayout::class, 'paid_by_admin_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user