mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
appsv2: fix check that main permission url is '/'
This commit is contained in:
parent
1d1a3756ba
commit
ab8a6b940f
1 changed files with 3 additions and 3 deletions
|
@ -298,11 +298,11 @@ class PermissionsResource(AppResource):
|
|||
properties[perm]["show_tile"] = bool(properties[perm]["url"])
|
||||
|
||||
if (
|
||||
isinstance(properties["main"]["url"], str)
|
||||
and properties["main"]["url"] != "/"
|
||||
not isinstance(properties["main"].get("url"), str)
|
||||
or properties["main"]["url"] != "/"
|
||||
):
|
||||
raise YunohostError(
|
||||
"URL for the 'main' permission should be '/' for webapps (or undefined/None for non-webapps). Note that / refers to the install url of the app",
|
||||
"URL for the 'main' permission should be '/' for webapps (or undefined/None for non-webapps). Note that / refers to the install url of the app, i.e $domain.tld/$path/",
|
||||
raw_msg=True
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue