Skip to content

Commit

Permalink
Update some tests to ensure WireCloud supports float numbers for rend…
Browse files Browse the repository at this point in the history
…ering properties and the titlevisible option
  • Loading branch information
aarranz committed Jun 7, 2019
1 parent 4bc22c6 commit ecb5292
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/wirecloud/platform/workspace/test-data/wt1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</resource>
<resource id="2" name="Test" title="Test (2)" vendor="Wirecloud" version="1.0">
<position x="0" y="0" z="0"/>
<rendering height="24" width="6" layout="0" minimized="false" fulldragboard="false"/>
<rendering height="24.5" width="6.1" layout="0.2" minimized="false" fulldragboard="false" titlevisible="false"/>
<preferencevalue name="text" value="value2"/>
<preferencevalue name="list" value="value1"/>
</resource>
Expand Down
1 change: 1 addition & 0 deletions src/wirecloud/platform/workspace/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def create(self, request):

from_ws = get_object_or_404(Workspace, id=workspace_id)
if from_ws.public is False and not request.user.is_superuser and from_ws.creator != request.user:
#if from_ws.public is False or from_ws.anonymous is False and request.is_anonand not request.user.is_superuser and from_ws.creator != request.user:
return build_error_response(request, 403, _('You are not allowed to read from workspace %s') % workspace_id)

options = {
Expand Down

0 comments on commit ecb5292

Please sign in to comment.