Fix permission name for creating repositories.

The Repository API already had some plumbing to allow users with a given
permission to create repositories regardless of their admin/staff status, but
it was using the wrong permission name. Trivial change.

Testing done: Ran unit tests.

Fixes bug 3307.
Merge branch 'release-1.7.x' into release-2.0.x