Commit 89d26619 by shiwenbo

增加文件共享license控制该模块

parent 272eb4f4
......@@ -100,6 +100,7 @@ public class TenantInitListener implements ApplicationListener<ApplicationReady
this.addLicence("md_sys");
this.addLicence("md_bill");
this.addLicence("md_bi");
this.addLicence("md_fileshared");
}
private void addLicence(String key){
......
......@@ -21,6 +21,7 @@ public final class AuthMgrConstants {
public final static String STATISTICS = "统计";
public final static String BILL = "报表";
public final static String BI = "综合BI";
public final static String FILESHARED = "文件共享";
}
public static final class SystemRoleGroup{
......
......@@ -411,6 +411,9 @@ public class AuthManagerServiceImpl implements AuthManagerService,ApplicationEve
if(RoleRootGroup.BI.equals(privilegeGroup)) {
return LicenseKeys.BI_PERMIT;
}
if(RoleRootGroup.FILESHARED.equals(privilegeGroup)) {
return LicenseKeys.FILESHARED_PERMIT;
}
return null;
}
......
......@@ -1716,7 +1716,7 @@
<m:name>fileshared_list</m:name>
<m:title>文件共享</m:title>
<m:index>1000</m:index>
<m:license></m:license>
<m:license>md_fileshared</m:license>
<m:privilege>com.xyst.dinas.fileshared.auth.FilesharedList</m:privilege>
<m:role></m:role>
<m:function-definition>
......
......@@ -69,4 +69,8 @@ public interface LicenseKeys {
* 许可访问综合BI模块
*/
public final String BI_PERMIT = "md_bi";
/**
* 许可访问文件共享模块
*/
public final String FILESHARED_PERMIT = "md_fileshared";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment