sozsoft-platform/ui/src/constants/permission.constant.ts

35 lines
1.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export const GLOBAL_SEARCH = 'App.Definitions.GlobalSearch'
export const AI_ASSISTANT = 'App.Definitions.AiBot.Asistant'
/** Veritabanı migration + seed tetikleme yetkisi (host tarafı). */
export const DB_MIGRATE = 'App.Setup.Migrate'
/**
* Wizard dosya yöneticisi yetkileri. `PermissionsData.json` içinde tanımlıdır ve seeder ile
* yönetilir; buradaki kontroller yalnızca butonları gizler, asıl kontrol
* `ListFormWizardAppService` üzerindedir.
*/
export const WIZARD_PERMISSION = {
/** Ekranı görme (okuma) yetkisi; alt yetkilerin tamamının üstüdür. */
DEFAULT: 'App.Listforms.Wizard',
CREATE: 'App.Listforms.Wizard.Create',
UPDATE: 'App.Listforms.Wizard.Update',
DELETE: 'App.Listforms.Wizard.Delete',
EXPORT: 'App.Listforms.Wizard.Export',
IMPORT: 'App.Listforms.Wizard.Import',
/** Wizard silinirken ekranın tablosunu düşürmek SQL Query Manager yetkisi ister. */
DROP_TABLE: 'App.SqlQueryManager',
} as const
/**
* ListForm alan (Fields) yoneticisi yetkileri. `PermissionsData.json` icinde tanimlidir ve
* seeder ile yonetilir; buradaki kontroller yalnizca butonlari kapatir, asil kontrol
* `ListFormFieldsAppService` uzerindeki ABP policy adlarindadir.
*/
export const LISTFORM_FIELD_PERMISSION = {
/** Alan listesini gorme (okuma) yetkisi; alt yetkilerin tamaminin ustudur. */
DEFAULT: 'App.Listforms.ListformField',
CREATE: 'App.Listforms.ListformField.Create',
UPDATE: 'App.Listforms.ListformField.Update',
DELETE: 'App.Listforms.ListformField.Delete',
} as const