User permission decorator

Decorator checks if the current authenticated user has permission to access the machine in the request.