Hello everyone,
I have a data object managed "product" in model Admin interface. I want to set the permission to delete data objects to administrators only. I have this function which removes the delete button from the grid for non administrators, but not on the gridfield edit form:
function canDelete($member = null) {
return Permission::check('DELETE_PRODUCTS');
}
I want the delete button to be removed from the edit form too. I don't know why the permission check works only on the gridfield list but not on the edit form..
any help?
Thanks