Clients prevent to click on button if the record is readonly
The server does not enforce such behavior if the button has groups but it put a state readonly if the user has no right.
So for me, the client should only rely on the button state and not on the record readonly state.