Enhance init_main_permission warning

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
tituspijean 2023-08-18 19:14:59 +02:00 committed by GitHub
parent eb518e84e7
commit 8ca86b4fd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1978,7 +1978,7 @@ class Manifest(TestSuite):
if (
isinstance(main_perm.get('url'), str)
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(
"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."