Miscellaneous fixes [fixes #56477254]
Fixed permissions on buttons so that actions that are not allowed don't show buttons. [fixes #55623186]