Feature: Offer only the actions a reader may perform 

Description 

A leave request now carries allowedActions: the operations the reader may perform on it now. The employee is offered withdrawing and replacing while it is pending, cancelling the days ahead once approved and withdrawing a pending cancellation; HR is offered cancelling; the current approver is offered approving and rejecting. The request screen shows its buttons from this list, so a button never appears for an action the server refuses.

Impact 

Representations of operations flagged with x-allowed-actions in the contract gain allowedActions. Packages offer the actions of their subjects by implementing SubjectActions; leave requests are the first.