fix(desktop): manual fixup on top of ruff's changes
This seems like what the original code wanted to do, I think Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
84ef6ec677
commit
72d658a256
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ class Workspace:
|
|||
item_type = item_type.lower()
|
||||
|
||||
if item_type == "doctype":
|
||||
return name in self.can_read or ([] and name in self.restricted_doctypes) or []
|
||||
return name in (self.can_read or []) and name in (self.restricted_doctypes or [])
|
||||
if item_type == "page":
|
||||
return name in self.allowed_pages and name in self.restricted_pages
|
||||
if item_type == "report":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue