summaryrefslogtreecommitdiff
path: root/app/Models/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/User.php')
-rwxr-xr-xapp/Models/User.php6
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;