mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 14:15:58 +00:00
fix: subscription / plan switch, etc
This commit is contained in:
1 parent
f931ebece8
commit
f78fd212bb
10 files changed
+74
-61
No files matched your search
@@ -159,6 +159,9 @@ class User extends Authenticatable implements SendsEmail
|
||||
|
||||
public function role()
|
||||
{
|
||||
if (data_get($this, 'pivot')) {
|
||||
return $this->pivot->role;
|
||||
}
|
||||
return auth()->user()->teams->where('id', currentTeam()->id)->first()->pivot->role;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user