Add created_by to all appropriate requests.

This commit is contained in:
Nicholas Staples
2016-04-15 11:08:19 +01:00
parent 99d5a3afc7
commit 2085792742
6 changed files with 33 additions and 9 deletions

View File

@@ -0,0 +1,6 @@
from flask.ext.login import current_user
def _attach_current_user(data):
data['created_by'] = current_user.id
return data