Added violation db field to keys, and added check for when keys are added that include characters that are owned by other Core accounts.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fixed bug where everything was shifted improperly in the table for non-violation keys.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fix bug that prevented the addition of new characters to the database.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Adds check to prevent the addition of API Keys alerady in the database.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fix whitespace issues, and remove temp code from the key delete function.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Adds EVECharacterKeyMask class for representing key masks and making it easier to compare permissions.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fixes some errors and updates pull_characters to use the new EVECharacterKeyModel class.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Adds EVEKeyMask class as a base for EVECharacterKeyMask and the new EVECorporationKeyMask classes.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Adds function for checking if a mask supports multiple keys at once.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Changes the mask field in EVECredential to return the applicable EVEKeyMask object instead of an integer.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
References the kind of key by the python attribute, not the db field name.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Semicolons are important. Very important.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Updates part of the code to use the new has_access method for key masks, fixes a bug related to adding new keys, and moves the validation code to the proper place.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Removes extraneous call that duplicating work when adding keys.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Applies the EVEKeyMask object to the mask fields of APICall and ApplicationGrant.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Merge branch 'develop' of https://github.com/bravecollective/core into feature/fixDuplicateCharacters

Conflicts:
	brave/core/key/model.py

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Adds new KeyMask function that reveals the number of EVE API functions the key mask provides access to, and updates the code to use the new function.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fix some bugs that lead to keys getting improperly marked as security violations, and fixes a bug preventing keys from getting marked as compliant.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Security violations now show up in the table row that is updated via javascript.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Adds additional information about security violations when the user hovers over the text of the violation.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>