mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
Refactor gov user check into a decorator
We quite often use it in the same way as `@user_has_permissions`.
This commit is contained in:
@@ -5,7 +5,6 @@ from flask_login import AnonymousUserMixin, UserMixin
|
||||
|
||||
from app.utils import is_gov_user
|
||||
|
||||
|
||||
roles = {
|
||||
'send_messages': ['send_texts', 'send_emails', 'send_letters'],
|
||||
'manage_templates': ['manage_templates'],
|
||||
|
||||
Reference in New Issue
Block a user