Browse Source

Add note about vendor permissions for a maintainer (#786)

Per <https://github.com/composer/packagist/issues/461#issuecomment-225888618>, and in light of the conversation at #163, I thought this might help users understand how to gain permission to submit packages under a vendor namespace owned by another user.
forevermatt 7 years ago
parent
commit
c759b05545
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Packagist/WebBundle/Entity/Package.php

+ 2 - 0
src/Packagist/WebBundle/Entity/Package.php

@@ -344,6 +344,8 @@ class Package
             if ($vendor && $this->entityRepository->isVendorTaken($vendor, reset($this->maintainers))) {
                 $context->buildViolation('The vendor is already taken by someone else. '
                         . 'You may ask them to add your package and give you maintainership access. '
+                        . 'If they add you as a maintainer on any package in that vendor namespace, '
+                        . 'you will then be able to add new packages in that namespace. '
                         . 'The packages already in that vendor namespace can be found at '
                         . '<a href="'.$this->router->generate('view_vendor', array('vendor' => $vendor)).'">'.$vendor.'</a>')
                     ->atPath('repository')