mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-26 20:26:13 +01:00
🔐 feat: Granular Role-based Permissions + Entra ID Group Discovery (#7804)
WIP: pre-granular-permissions commit
feat: Add category and support contact fields to Agent schema and UI components
Revert "feat: Add category and support contact fields to Agent schema and UI components"
This reverts commit c43a52b4c9.
Fix: Update import for renderHook in useAgentCategories.spec.tsx
fix: Update icon rendering in AgentCategoryDisplay tests to use empty spans
refactor: Improve category synchronization logic and clean up AgentConfig component
refactor: Remove unused UI flow translations from translation.json
feat: agent marketplace features
🔐 feat: Granular Role-based Permissions + Entra ID Group Discovery (#7804)
This commit is contained in:
parent
aec1777a90
commit
28d9deed0a
143 changed files with 17590 additions and 629 deletions
27
packages/data-schemas/src/common/enum.ts
Normal file
27
packages/data-schemas/src/common/enum.ts
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/**
|
||||
* Permission bit flags
|
||||
*/
|
||||
export enum PermissionBits {
|
||||
/** 0001 - Can view/access the resource */
|
||||
VIEW = 1,
|
||||
/** 0010 - Can modify the resource */
|
||||
EDIT = 2,
|
||||
/** 0100 - Can delete the resource */
|
||||
DELETE = 4,
|
||||
/** 1000 - Can share the resource with others */
|
||||
SHARE = 8,
|
||||
}
|
||||
|
||||
/**
|
||||
* Common role combinations
|
||||
*/
|
||||
export enum RoleBits {
|
||||
/** 0001 = 1 */
|
||||
VIEWER = PermissionBits.VIEW,
|
||||
/** 0011 = 3 */
|
||||
EDITOR = PermissionBits.VIEW | PermissionBits.EDIT,
|
||||
/** 0111 = 7 */
|
||||
MANAGER = PermissionBits.VIEW | PermissionBits.EDIT | PermissionBits.DELETE,
|
||||
/** 1111 = 15 */
|
||||
OWNER = PermissionBits.VIEW | PermissionBits.EDIT | PermissionBits.DELETE | PermissionBits.SHARE,
|
||||
}
|
||||
1
packages/data-schemas/src/common/index.ts
Normal file
1
packages/data-schemas/src/common/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from './enum';
|
||||
Loading…
Add table
Add a link
Reference in a new issue