Skip to content

Role

@firecms/core


@firecms/core / Role

Role = object

Defined in: types/roles.ts:3

optional collectionPermissions: Record<string, Permissions>

Defined in: types/roles.ts:31

Record of stripped collection ids to their permissions.

stripCollectionPath


optional config: object

Defined in: types/roles.ts:36

Permissions related to editing the collections

optional createCollections: boolean

optional deleteCollections: boolean | "own"

optional editCollections: boolean | "own"


optional defaultPermissions: Permissions

Defined in: types/roles.ts:25

Default permissions for all collections for this role. You can override this values at the collection level using collectionPermissions


id: string

Defined in: types/roles.ts:8

ID of the role


optional isAdmin: boolean

Defined in: types/roles.ts:18

If this flag is true, the user can perform any action


name: string

Defined in: types/roles.ts:13

Name of the role