Giant Update
This commit is contained in:
@@ -102,6 +102,16 @@ class User extends Authenticatable
|
||||
return $this->hasMany(UserMenuGroup::class, 'user_id');
|
||||
}
|
||||
|
||||
public function userNotifications()
|
||||
{
|
||||
return $this->hasMany(UserNotification::class, 'user_id');
|
||||
}
|
||||
|
||||
public function wallets()
|
||||
{
|
||||
return $this->morphMany(Wallet::class, 'owner');
|
||||
}
|
||||
|
||||
public function isMasterAdmin(): bool
|
||||
{
|
||||
return $this->is_master || $this->access_level === UserAccessLevel::MASTER_ADMIN;
|
||||
|
||||
Reference in New Issue
Block a user