Add restrictions based on API key accessMask

This commit is contained in:
2011-12-10 18:49:12 +00:00
parent a2f33ff61e
commit 060a19efd4
3 changed files with 18 additions and 8 deletions

View File

@@ -167,8 +167,10 @@ class ApplicationConfig(models.Model):
corporation = models.OneToOneField(EVEPlayerCorporation, blank=False, verbose_name="Corporation", related_name="application_config")
is_accepting = models.BooleanField(verbose_name="Accepting Applications",
help_text="Defines if the corporation is accepting applications")
api_required = models.IntegerField(choices=API_KEYTYPE_CHOICES, default=1, verbose_name="Minimum API Key Level",
help_text="This defines the minimum level of API needed to create a application")
api_required = models.IntegerField(choices=API_KEYTYPE_CHOICES, default=1, verbose_name="API Key Type",
help_text="This defines the type of API key needed to create a application")
api_accessmask = models.IntegerField(verbose_name="Minimum Access Level",
help_text="Defines the minimum level API accepted as valid, provided as a CAK accessMask")
api_view = models.BooleanField(verbose_name="View Applicant APIs",
help_text="This allows HR staff to see the applicant's API keys")