不允许删除最后一个管理员工作项,这是因为相应的实例对象必须保持能够管理。
You are not allowed to delete the last administrator work item, since the corresponding instance object must remain manageable.
典型的解决方案是使用一个目录,使该目录的权限根本不允许未经授权的程序添加或者删除文件。
The typical solution is to use a directory for which the permissions don't allow unprivileged programs to add or remove files at all.
在这个业务示例中,只要存在相关的订单,就不允许删除客户。
In this example business case, it is not allowed to delete a customer as long as associated orders exist.
应用推荐