mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Require init_main_permission question for webapps
This commit is contained in:
parent
0dd375db34
commit
15751d3cd2
1 changed files with 9 additions and 0 deletions
|
@ -1942,6 +1942,15 @@ class Manifest(TestSuite):
|
||||||
% argument.get("name")
|
% argument.get("name")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
elif (
|
||||||
|
argument.get("name") == "domain"
|
||||||
|
and not any([a.get("name") == "init_main_permission" for a in args])
|
||||||
|
):
|
||||||
|
yield Warning(
|
||||||
|
"You should add a 'init_main_permission' question to have the app ready to be accessed right after installation."
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def resource_consistency(self):
|
def resource_consistency(self):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue