Port over the billing apis.
This commit is contained in:
parent
a667714d3d
commit
3c268de025
4 changed files with 325 additions and 0 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue