mirror of
https://github.com/coder/coder.git
synced 2026-10-13 07:38:23 +08:00
Closes [this issue](https://github.com/coder/internal/issues/385#issuecomment-2667061358) ## New behavior When a user ends up on a page they don't have permission to view instead of being redirected back to _/workspaces_ they'll be met with the un-closeable dialog below with a link to _/workspaces_. This is similar to [this PR](https://github.com/coder/coder/pull/16644) but IMO we should be making sure we are using `<RequirePermissions />` wherever applicable and only relying on `<ErrorAlert />` as a fallback in case there is some page we missed or endpoint we're accidentally using. 