- Frontend restriction alerts

This commit is contained in:
Čarodej
2022-01-05 18:57:02 +01:00
parent 29a954e21b
commit 05f6023053
10 changed files with 108 additions and 12 deletions
+7
View File
@@ -58,6 +58,13 @@ class UserResource extends JsonResource
]),
],
'meta' => [
'restrictions' => [
'canUpload' => $this->canUpload(),
'canDownload' => $this->canDownload(),
'canCreateFolder' => $this->canCreateFolder(),
'canCreateTeamFolder' => $this->canCreateTeamFolder(),
'canInviteTeamMembers' => $this->canInviteTeamMembers(),
],
$this->mergeWhen($isFixedSubscription, fn () => [
'limitations' => $this->limitations->summary(),
]),