mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-24 09:50:39 +00:00
- Frontend restriction alerts
This commit is contained in:
@@ -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(),
|
||||
]),
|
||||
|
||||
Reference in New Issue
Block a user