Skip to main content

checkAndNotifyCrudPermission

checkAndNotifyCrudPermission(crudAction, resourceMeta, withId?): boolean

Checks if the user has the necessary CRUD permission for a given resource. Notifies if access is denied.

Parameters​

crudAction​

CrudAction

The CRUD action to check

resourceMeta​

ResourceMeta

Metadata of the resource to check permissions against

withId?​

WithId

resource instance

Returns​

boolean