mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-20 13:19:24 +00:00
Various fixes and changes, security problems fixed, bugs resolved.
* Application status is now policed through APPLICATION_STATUS_ROUTES. * Blacklisted application cannot be accepted. * Blacklists are checked case insensitively. * The template now shows blacklist advisories * Applications are no longer flagged as Blacklisted unless they have a blacklist entry
This commit is contained in:
@@ -22,6 +22,17 @@ APPLICATION_STATUS_CHOICES = (
|
||||
(APPLICATION_STATUS_FLAGGED, 'Flagged For Review'),
|
||||
)
|
||||
|
||||
# Routes that are allowed (Accept/Reject are managed seperately)
|
||||
APPLICATION_STATUS_ROUTES = {
|
||||
APPLICATION_STATUS_NOTSUBMITTED: [APPLICATION_STATUS_AWAITINGREVIEW],
|
||||
APPLICATION_STATUS_AWAITINGREVIEW: [APPLICATION_STATUS_NOTSUBMITTED, APPLICATION_STATUS_QUERY, APPLICATION_STATUS_FLAGGED],
|
||||
APPLICATION_STATUS_REJECTED: [],
|
||||
APPLICATION_STATUS_ACCEPTED: [APPLICATION_STATUS_COMPLETED],
|
||||
APPLICATION_STATUS_QUERY: [],
|
||||
APPLICATION_STATUS_COMPLETED: [],
|
||||
APPLICATION_STATUS_FLAGGED: [],
|
||||
}
|
||||
|
||||
# Audit Event Type Codes
|
||||
AUDIT_EVENT_STATUSCHANGE = 0
|
||||
AUDIT_EVENT_NOTE = 1
|
||||
|
||||
Reference in New Issue
Block a user