mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
Remove access_developer_docs as a permission type. It does not make sense to have permission for viewing the documentation.
On the downgrade method of the db script the assumption that all users with manage_api_keys had the access_developer_docs permission.
This commit is contained in:
@@ -12,7 +12,6 @@ from app.models import (
|
||||
SEND_EMAILS,
|
||||
SEND_LETTERS,
|
||||
MANAGE_API_KEYS,
|
||||
ACCESS_DEVELOPER_DOCS,
|
||||
VIEW_ACTIVITY)
|
||||
|
||||
|
||||
@@ -25,7 +24,6 @@ default_service_permissions = [
|
||||
SEND_EMAILS,
|
||||
SEND_LETTERS,
|
||||
MANAGE_API_KEYS,
|
||||
ACCESS_DEVELOPER_DOCS,
|
||||
VIEW_ACTIVITY]
|
||||
|
||||
|
||||
|
||||
@@ -306,7 +306,6 @@ SEND_TEXTS = 'send_texts'
|
||||
SEND_EMAILS = 'send_emails'
|
||||
SEND_LETTERS = 'send_letters'
|
||||
MANAGE_API_KEYS = 'manage_api_keys'
|
||||
ACCESS_DEVELOPER_DOCS = 'access_developer_docs'
|
||||
PLATFORM_ADMIN = 'platform_admin'
|
||||
VIEW_ACTIVITY = 'view_activity'
|
||||
|
||||
@@ -319,7 +318,6 @@ PERMISSION_LIST = [
|
||||
SEND_EMAILS,
|
||||
SEND_LETTERS,
|
||||
MANAGE_API_KEYS,
|
||||
ACCESS_DEVELOPER_DOCS,
|
||||
PLATFORM_ADMIN,
|
||||
VIEW_ACTIVITY]
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ from app.models import (
|
||||
SEND_EMAILS,
|
||||
SEND_LETTERS,
|
||||
MANAGE_API_KEYS,
|
||||
ACCESS_DEVELOPER_DOCS,
|
||||
VIEW_ACTIVITY
|
||||
)
|
||||
|
||||
@@ -15,7 +14,7 @@ from app.schemas import permission_schema
|
||||
|
||||
permissions_groups = {'send_messages': [SEND_TEXTS, SEND_EMAILS, SEND_LETTERS],
|
||||
'manage_service': [MANAGE_USERS, MANAGE_SETTINGS, MANAGE_TEMPLATES],
|
||||
'manage_api_keys': [MANAGE_API_KEYS, ACCESS_DEVELOPER_DOCS],
|
||||
'manage_api_keys': [MANAGE_API_KEYS],
|
||||
VIEW_ACTIVITY: [VIEW_ACTIVITY]}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user