We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00e3dee commit 2d60587Copy full SHA for 2d60587
1 file changed
spp_farmer_registry/controllers/main.py
@@ -9,7 +9,5 @@ class FarmerRegistryController(http.Controller):
9
def get_registry_restriction(self):
10
"""Return whether registry CRUD is restricted to admin only."""
11
ICP = request.env["ir.config_parameter"].sudo() # nosemgrep
12
- value = ICP.get_param(
13
- "spp_farmer_registry.registry_admin_only_crud", "False"
14
- )
+ value = ICP.get_param("spp_farmer_registry.registry_admin_only_crud", "False")
15
return {"restricted": value == "True"}
0 commit comments