Port over the billing apis.

This commit is contained in:
jakedt 2014-03-14 15:35:20 -04:00
parent a667714d3d
commit 3c268de025
4 changed files with 325 additions and 0 deletions

View file

@ -157,6 +157,7 @@ class OrgPrivateRepositories(ApiResource):
# @org_api_call('get_user_private_allowed')
@nickname('getOrganizationPrivateAllowed')
def get(self, orgname):
""" Return whether or not this org is allowed to create new private repositories. """
permission = CreateRepositoryPermission(orgname)
if permission.can():
organization = model.get_organization(orgname)