Show More
@@ -239,17 +239,4 b' def app_main_index(request):' | |||||
239 | - latest events |
|
239 | - latest events | |
240 | (those last two come from subscribers.py that sets global renderer variables) |
|
240 | (those last two come from subscribers.py that sets global renderer variables) | |
241 | """ |
|
241 | """ | |
242 |
|
242 | return {} | ||
243 | if request.user: |
|
|||
244 | request.user.last_login_date = datetime.datetime.utcnow() |
|
|||
245 | applications = request.user.resources_with_perms( |
|
|||
246 | ['view'], resource_types=['application']) |
|
|||
247 | # convert for angular |
|
|||
248 | applications = dict( |
|
|||
249 | [(a.resource_id, a.resource_name) for a in applications.all()] |
|
|||
250 | ) |
|
|||
251 | else: |
|
|||
252 | applications = {} |
|
|||
253 | return { |
|
|||
254 | 'applications': applications |
|
|||
255 | } |
|
General Comments 0
You need to be logged in to leave comments.
Login now