|
|
@@ -956,16 +956,37 @@ void SetMenuAuthority(int RoleID)
|
|
|
#else
|
|
|
_GlobalMenuAuthority.GjsjEnabled = false;
|
|
|
#endif
|
|
|
- _GlobalMenuAuthority.KzbsjEnabled = true;
|
|
|
_GlobalMenuAuthority.HhccszEnabled = true;
|
|
|
_GlobalMenuAuthority.PzdrdcEnabled = true;
|
|
|
_GlobalMenuAuthority.ShfwEnabled = true;
|
|
|
_GlobalMenuAuthority.GysbEnabled = true;
|
|
|
_GlobalMenuAuthority.BroadcastEnable = true;
|
|
|
+#ifdef KZBSJ_ENABLE
|
|
|
+ _GlobalMenuAuthority.KzbsjEnabled = true;
|
|
|
+#else
|
|
|
+ _GlobalMenuAuthority.KzbsjEnabled = false;
|
|
|
+#endif
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
#if (CHIP_TYPE == CHIP_T113i)
|
|
|
- _GlobalMenuAuthority.RadiusEnabled = true;
|
|
|
- _GlobalMenuAuthority.LdapEnabled = true;
|
|
|
+ #ifdef RADIUS_ENABLE
|
|
|
+ _GlobalMenuAuthority.RadiusEnabled = true;
|
|
|
+ #else
|
|
|
+ _GlobalMenuAuthority.RadiusEnabled = false;
|
|
|
+ #endif
|
|
|
+ #ifdef LDAD_ENABLE
|
|
|
+ _GlobalMenuAuthority.LdapEnabled = true;
|
|
|
+ #else
|
|
|
+ _GlobalMenuAuthority.LdapEnabled = false;
|
|
|
+ #endif
|
|
|
+
|
|
|
+ #ifdef CLOUD_SMS_ENABLE
|
|
|
+ _GlobalMenuAuthority.CloudSmsEnable = false;
|
|
|
+ #else
|
|
|
_GlobalMenuAuthority.CloudSmsEnable = false;
|
|
|
+ #endif
|
|
|
#endif
|
|
|
}
|
|
|
// 管理员
|