作者 唐旭辉

修正权限编码

... ... @@ -9,7 +9,7 @@ const (
PERMINSSION_ADMIN_USER string = "ADMIN" //管理员管理
PERMINSSION_ORDER_ACTUA string = "ORDER_ACTUA" //实际订单
PERMINSSION_ORDER_INTENTION string = "ORDER_INTENTION" //意向订单
PERMISSION_ENTERPRISE string = "ENTERPRISE-SETTING" //企业配置
PERMISSION_ENTERPRISE_SET string = "ENTERPRISE-SETTING" //企业配置
PERMISSION_ENTERPRISE_SET_PHONE string = "ENTERPRISE-SETTING-PHONE" //企业配置电话号码
)
... ...
... ... @@ -18,7 +18,7 @@ func (c *CompanyController) Prepare() {
if ok := c.ValidJWTToken(); !ok {
return
}
if ok := c.ValidAdminPermission(domain.PERMISSION_ENTERPRISE); !ok {
if ok := c.ValidAdminPermission(domain.PERMISSION_ENTERPRISE_SET); !ok {
return
}
}
... ...