package com.qiumingkui.sample.imedia.mp.domain.model.category;

public class CategoryPermissionPolicy {

}

@@ -61,47 +61,1094 @@
 y;%0A%0A
-public class CategoryPermissionPolicy %7B%0A
+import com.qiumingkui.sample.imedia.common.domain.PolicyDecisionResult;%0Aimport com.qiumingkui.sample.imedia.makemoney.domain.model.member.Admin;%0A%0Apublic class CategoryPermissionPolicy %7B%0A%0A%09public static PolicyDecisionResult hasAddCategoryPermission(Admin admin) %7B%0A%09%09%0A%09%09if(admin!=null&&admin.isValidated())%7B%0A%09%09%09PolicyDecisionResult result = new PolicyDecisionResult(true);%0A%09%09%09return result;%0A%09%09%7D%0A%09%09%0A%09%09PolicyDecisionResult result = new PolicyDecisionResult(false);%0A%09%09return result;%0A%0A%09%7D%0A%09%0A%09public static PolicyDecisionResult hasChangeDescriptionPermission(Admin admin) %7B%0A%09%09%0A%09%09if(admin!=null&&admin.isValidated())%7B%0A%09%09%09PolicyDecisionResult result = new PolicyDecisionResult(true);%0A%09%09%09return result;%0A%09%09%7D%0A%09%09%0A%09%09PolicyDecisionResult result = new PolicyDecisionResult(false);%0A%09%09return result;%0A%09%7D%0A%09%0A%09public static PolicyDecisionResult hasChangePostNumberPermission(Admin admin) %7B%0A%09%09%0A%09%09if(admin!=null&&admin.isValidated())%7B%0A%09%09%09PolicyDecisionResult result = new PolicyDecisionResult(true);%0A%09%09%09return result;%0A%09%09%7D%0A%09%09%0A%09%09PolicyDecisionResult result = new PolicyDecisionResult(false);%0A%09%09return result;%0A%0A%09%7D%0A%09
 %0A%7D%0A

修改 CategoryPermissionPolicy