Commit 47cab492 authored by Daniele Venzano's avatar Daniele Venzano

Update documentation regarding ZApp access filtering in the zapp shop

parent 4f7dba4c
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
"readable_descr": "README-datascience.md", "readable_descr": "README-datascience.md",
"name": "Data science notebook", "name": "Data science notebook",
"description": "pydatasci.json", "description": "pydatasci.json",
"parameters": [], "parameters": []
"guest_access": true
}, },
{ {
"category": "Data science", "category": "Data science",
...@@ -23,8 +22,7 @@ ...@@ -23,8 +22,7 @@
"type": "string", "type": "string",
"default": "all" "default": "all"
} }
], ]
"guest_access": false
} }
] ]
} }
......
...@@ -180,7 +180,7 @@ The ``manifest.json`` file gather all this information together for the ZApp Sho ...@@ -180,7 +180,7 @@ The ``manifest.json`` file gather all this information together for the ZApp Sho
"default": "./my-tf-app/main.py" "default": "./my-tf-app/main.py"
} }
], ],
"guest_access": true "disabled_for": ["role_A"]
} }
] ]
} }
...@@ -195,7 +195,7 @@ For each ZApp: ...@@ -195,7 +195,7 @@ For each ZApp:
* description : the name of the json file with the Zoe description * description : the name of the json file with the Zoe description
* readable_descr : the name of the markdown file containing user documentation for the ZApp * readable_descr : the name of the markdown file containing user documentation for the ZApp
* parameters : a list of parameters the user can set to tune the ZApp before starting it * parameters : a list of parameters the user can set to tune the ZApp before starting it
* guest_access (optional) : if true the ZApp is visible to guest users, default is false * disabled_for (optional) : list of roles that will not see this ZApp in the app shop
Parameters: Parameters:
......
...@@ -65,10 +65,6 @@ class ZApp: ...@@ -65,10 +65,6 @@ class ZApp:
self.labels = [] self.labels = []
self.parameters = [] self.parameters = []
self.parse_parameters(zapp) self.parse_parameters(zapp)
if 'guest_access' in zapp:
self.guest_access = zapp['guest_access']
else:
self.guest_access = False
if 'logo' in zapp: if 'logo' in zapp:
self.logo = zapp['logo'] self.logo = zapp['logo']
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment