|
|
|
|
222
|
result = result.filter(Content.type.in_(self.DISPLAYABLE_CONTENTS))
|
222
|
result = result.filter(Content.type.in_(self.DISPLAYABLE_CONTENTS))
|
223
|
|
223
|
|
224
|
if workspace:
|
224
|
if workspace:
|
225
|
- result = result.filter(Content.workspace_id==workspace.workspace_id)
|
|
|
|
|
225
|
+ result = result.filter(Content.workspace_id == workspace.workspace_id)
|
226
|
|
226
|
|
227
|
# Security layer: if user provided, filter
|
227
|
# Security layer: if user provided, filter
|
228
|
# with user workspaces privileges
|
228
|
# with user workspaces privileges
|