Nanocloud / nanocloud

http://nanocloud.com
GNU Affero General Public License v3.0
25 stars 16 forks source link

Machine are available in machine page, for regular users. #462

Closed corentindrouet closed 7 years ago

corentindrouet commented 7 years ago

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.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.05%) to 70.723% when pulling 6e2f4b589f35bd7c3ac8c3da60a409fd4aa3c0b8 on corentindrouet:no_machine into cf8434ee046206314fe1daaa3b58e913b4a63fa2 on Nanocloud:master.