mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Add created_by to all appropriate requests.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
from flask.ext.login import current_user
|
||||
|
||||
|
||||
def _attach_current_user(data):
|
||||
data['created_by'] = current_user.id
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user