mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: app sharing (now open source!) (#4378)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
-- Add enum app_sharing_level
|
||||
CREATE TYPE app_sharing_level AS ENUM (
|
||||
-- only the workspace owner can access the app
|
||||
'owner',
|
||||
-- any authenticated user on the site can access the app
|
||||
'authenticated',
|
||||
-- any user can access the app even if they are not authenticated
|
||||
'public'
|
||||
);
|
||||
|
||||
-- Add sharing_level column to workspace_apps table
|
||||
ALTER TABLE workspace_apps ADD COLUMN sharing_level app_sharing_level NOT NULL DEFAULT 'owner'::app_sharing_level;
|
||||
Reference in New Issue
Block a user