fix(agent): fix agent visibility defaults and permission model
- Change DB default for agent visibility from 'workspace' to 'private' - Fix canManageAgent: workspace agents are now manageable by all members, private agents remain restricted to owner/admin - Add private agent visibility check to BatchAssigneePicker (was missing)
This commit is contained in:
parent
2152fec4ee
commit
bedf4a05c8
4 changed files with 46 additions and 25 deletions
1
server/migrations/028_agent_default_private.up.sql
Normal file
1
server/migrations/028_agent_default_private.up.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE agent ALTER COLUMN visibility SET DEFAULT 'private';
|
||||
Loading…
Add table
Add a link
Reference in a new issue