mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Enhance init_main_permission warning
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
eb518e84e7
commit
8ca86b4fd6
1 changed files with 1 additions and 1 deletions
|
@ -1978,7 +1978,7 @@ class Manifest(TestSuite):
|
||||||
if (
|
if (
|
||||||
isinstance(main_perm.get('url'), str)
|
isinstance(main_perm.get('url'), str)
|
||||||
and "init_main_permission" not in self.manifest['install']
|
and "init_main_permission" not in self.manifest['install']
|
||||||
and not isinstance(main_perm.get('allowed'), str)
|
and not main_perm.get('allowed')
|
||||||
):
|
):
|
||||||
yield Warning(
|
yield Warning(
|
||||||
"You should add a 'init_main_permission' question, or define `allowed` for main permission to have the app ready to be accessed right after installation."
|
"You should add a 'init_main_permission' question, or define `allowed` for main permission to have the app ready to be accessed right after installation."
|
||||||
|
|
Loading…
Add table
Reference in a new issue