Description
Background
The template admin can view other users' workspaces to view the build logs, but they cannot access coder_apps, the terminal, or perform actions (stop/start/etc)
Current behavior
@matifali brought up a good point with these two issues #9081 #9082. The UX is quite confusing which makes Coder look broken. Template admins can click into workspaces but then get vague errors.
Proposed behavior
We disable buttons for unavailable actions for template admins with a tooltip that explains they do not have permissions to do the action. Alternatively, we change the error on the terminal page, coder_apps, etc to show the user does not have permisisons
We also have CODER_DISABLE_OWNER_WORKSPACE_ACCESS so the product should also disable the button for owners on workspaces that is not theirs if that is flag is enabled.