When going to machines page, a request is made to sessions to know if machines are in use.
Regular users didn't have the right to request this endpoint.
Correct it by let regular users access only his sessions informations, checking his right before returning sessions.
Coverage increased (+0.05%) to 70.723% when pulling 6e2f4b589f35bd7c3ac8c3da60a409fd4aa3c0b8 on corentindrouet:no_machine into cf8434ee046206314fe1daaa3b58e913b4a63fa2 on Nanocloud:master.
Fixes #460
When going to machines page, a request is made to sessions to know if machines are in use. Regular users didn't have the right to request this endpoint. Correct it by let regular users access only his sessions informations, checking his right before returning sessions.