mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms-api-rest: fix domain service properties (user permission)
This commit is contained in:
committed by
Darío Lodeiros
parent
2fce02802d
commit
6d9c0d9420
@@ -22,7 +22,7 @@ class PmsPropertyService(Component):
|
||||
auth="jwt_api_pms",
|
||||
)
|
||||
def get_properties(self):
|
||||
domain = []
|
||||
domain = [("user_ids", "in", [self.env.user.id])]
|
||||
result_properties = []
|
||||
PmsPropertyInfo = self.env.datamodels["pms.property.info"]
|
||||
for prop in self.env["pms.property"].search(
|
||||
|
||||
Reference in New Issue
Block a user