user.go 412 B

12345678910111213141516
  1. package eta_business
  2. import "eta/eta_forum_admin/utils"
  3. // 校验当前操作员是否具有联系人权限是否有操作权限
  4. func CheckBusinessUserButton(roleTypeCode string, itemSellerId, sysUserId int) (ok bool) {
  5. if roleTypeCode == utils.ROLE_TYPE_CODE_ADMIN || roleTypeCode == utils.ROLE_TYPE_CODE_FICC_ADMIN {
  6. ok = true
  7. return
  8. }
  9. if sysUserId == itemSellerId {
  10. ok = true
  11. return
  12. }
  13. return
  14. }