mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-19 05:53:51 -04:00
Replace send_messages and manage_service strings across application with ServicePermission.SEND_MESSAGES and ServicePermission.MANAGE_SERVICE types
This commit is contained in:
@@ -359,6 +359,11 @@ def init_app(application):
|
||||
def _attach_current_user():
|
||||
return {"current_user": current_user}
|
||||
|
||||
@application.context_processor
|
||||
def _attach_enums():
|
||||
from app.enums import ServicePermission
|
||||
return {"ServicePermission": ServicePermission}
|
||||
|
||||
@application.context_processor
|
||||
def _nav_selected():
|
||||
return navigation
|
||||
|
||||
Reference in New Issue
Block a user