usedCapacity + $fileSize, maxAmount: $user->limitations->max_storage_amount, ); // 2. Check if storage usage exceed predefined capacity return ! ($usedPercentage >= 100); } public function canDownload(User $user): bool { return true; } public function canCreateFolder(User $user): bool { return true; } public function canCreateTeamFolder(User $user): bool { return true; } public function canInviteTeamMembers(User $user, array $newInvites = []): bool { return true; } public function canVisitShared(User $user): bool { return true; } public function getRestrictionReason(User $user): string|null { return null; } }