In this example, we will set up the "product" model.
Open the "Function Privileges" tab in the "Privileges" tab.The operation authority for this model is set. In the standard, there is a principal "general user" with basic authority.(Figure 1)
Prepare a new principal.(FIGS. 2 and 3)
Restrict principal "general user" to search system only.(I will remove the other authorities.)
Prepare a new principal "product manager" (English name productmgr).Set the privileges excluded by general users.
After setting, build, run the application.
When using an external database, "What to do when adding a principalPlease import data as described in.
First, log on as a system administrator.Select "Account list display" from the management processing menu.(FIG. 5)
Register new account.
Create an account "user" (general user).
Select "Common processing" "Change password" "General user" for the principal.
Create another account "manager" (master data administrator).
"Common processing" "Change password" "General user" to the principal"Product manager"Choose.
After creating these two test accounts, log off the system administrator.
Log on as master data administrator. Select "Product Search" from the menu.The registration button is displayed.(Figure 9)
On the details screen after registering product data, you can see that operations such as registration, update and deletion can be performed.(FIG. 10)
Log off and then log on as a general user.
Select "Product Search" from the menu.The registration button is not displayed.(FIG. 11)
This account can only search and display.(FIG. 12)
We introduced the control method of update authority here, but you can combine permissions according to the purpose.For example, you can create a principal that does not allow "delete" or a principal dedicated to "CSV download/upload update" processing.