mirror of
https://github.com/freedbygrace/ActiveDirectoryManager.git
synced 2026-08-27 19:17:07 +00:00
Expand API token permissions to include sites and subnets management.
Replit-Commit-Author: Agent Replit-Commit-Session-Id: 705f2157-ef97-4fbd-89e4-8c7f2ecaea90 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ed01c5f-a82d-405a-b728-b2e3d127c60c/1bd1ab4c-7878-4bd7-8e5a-7700311c88c6.jpg
This commit is contained in:
@@ -51,6 +51,17 @@ export const PERMISSIONS = {
|
|||||||
MOVE_AD_COMPUTERS: "move:ad_computers",
|
MOVE_AD_COMPUTERS: "move:ad_computers",
|
||||||
|
|
||||||
VIEW_AD_DOMAINS: "view:ad_domains",
|
VIEW_AD_DOMAINS: "view:ad_domains",
|
||||||
|
|
||||||
|
// Sites and Services management
|
||||||
|
VIEW_AD_SITES: "view:ad_sites",
|
||||||
|
CREATE_AD_SITES: "create:ad_sites",
|
||||||
|
UPDATE_AD_SITES: "update:ad_sites",
|
||||||
|
DELETE_AD_SITES: "delete:ad_sites",
|
||||||
|
|
||||||
|
VIEW_AD_SUBNETS: "view:ad_subnets",
|
||||||
|
CREATE_AD_SUBNETS: "create:ad_subnets",
|
||||||
|
UPDATE_AD_SUBNETS: "update:ad_subnets",
|
||||||
|
DELETE_AD_SUBNETS: "delete:ad_subnets",
|
||||||
|
|
||||||
// API Token management
|
// API Token management
|
||||||
MANAGE_API_TOKENS: "manage:api_tokens",
|
MANAGE_API_TOKENS: "manage:api_tokens",
|
||||||
@@ -90,6 +101,14 @@ export const permissionsSchema = z.enum([
|
|||||||
"delete:ad_computers",
|
"delete:ad_computers",
|
||||||
"move:ad_computers",
|
"move:ad_computers",
|
||||||
"view:ad_domains",
|
"view:ad_domains",
|
||||||
|
"view:ad_sites",
|
||||||
|
"create:ad_sites",
|
||||||
|
"update:ad_sites",
|
||||||
|
"delete:ad_sites",
|
||||||
|
"view:ad_subnets",
|
||||||
|
"create:ad_subnets",
|
||||||
|
"update:ad_subnets",
|
||||||
|
"delete:ad_subnets",
|
||||||
"manage:api_tokens",
|
"manage:api_tokens",
|
||||||
"manage:roles",
|
"manage:roles",
|
||||||
"admin:system"
|
"admin:system"
|
||||||
|
|||||||
Reference in New Issue
Block a user