Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2457 มุมมอง

In the sales module (or any module with a partner that has an address), when creating a new customer the address fields ask for state and country.

I would like to only allow administrators to create/edit state and country. Non administrators should only be able to select a state and country from the dropdown, but not create new ones.

How would I go about doing this?

อวตาร
ละทิ้ง

Override create method and check login user group if the login user group is admin than allow him to create other wise restrict the user.

Override Create Method: https://goo.gl/4BkizH

Check login user group: https://goo.gl/Ts3qqK

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 25
5903
2
ก.พ. 20
3327
Different Access Permission แก้ไขแล้ว
2
ม.ค. 19
3262
1
พ.ย. 16
5566
0
ก.พ. 16
2931