diff options
Diffstat (limited to 'app/Models/User.php')
| -rwxr-xr-x | app/Models/User.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Models/User.php b/app/Models/User.php index e59d7fa..16c7143 100755 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -68,11 +68,11 @@ class User extends Authenticatable } public function getStorageQuota(){ - $roles = $this->roles(); + $roles = $this->roles()->get(); $quota = 0; foreach ($roles as $r){ - if ($role->storage_quota > $quota){ - $quota = $role->storage_quota; + if ($r->storage_quota > $quota){ + $quota = $r->storage_quota; } } return $quota; |
