[ ] Affected Issues have been mentioned in the Closing issues section
[ ] Documentation has been written/updated
[ ] PR title is ready for inclusion in changelog
Database Migrations
[ ] If your PR contains a database migation, it MUST be the latest in date order alphabetically
3675 introduced last_accessed attribute to users. Most users get an attribute added to them when they are created, but users created via an IDP do not. This is just a quick fix to check that attributes exist before trying to access the attribute value.
Also moves the lastaccessed call to apollo so it is only called once on the initial request, rather than every haspermission check
General Checklist
Database Migrations
3675 introduced
last_accessed
attribute to users. Most users get an attribute added to them when they are created, but users created via an IDP do not. This is just a quick fix to check that attributes exist before trying to access the attribute value.Also moves the lastaccessed call to apollo so it is only called once on the initial request, rather than every haspermission check